[Problem/Question]
// Detailed description of issue.
As the title states, my team and I are seeing role values of null
when the typings clearly show:
export declare enum Role {
OPERATOR = 'operator',
NONE = 'none',
}
We believe this to be a regression, either in the typings or in the actual backend response from sendbird.
// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?
@sendbird/chat 4.1.0
[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
Simply call await groupChannelCollection.loadMore()
and observe the data returned by it. Notice specifically in each channel.members
, some of the members should have
[Frequency]
// How frequently is this issue occurring?
Each time we call loadMore()
we see this issue.
[Current impact]
// How is this currently impacting your implementation?
For now, we have avoided this issue instead of explicitly using member.role === 'none'
to member.role !== 'operator'
this is of course a quick fix and i can imagine scenarios where people would want to use member.role === 'none'
. So, this is either a typeing issue (i.e. the role enum is no longer ‘operator’ or ‘none’, but instead 'operator and null
- or this is a true regression, and role statuses are not being hydrated from sendbird’s side