Hi I’m using Sendbird Sdk to implement chatting feature in our Flutter application.
I’m trying to create Public Group Channels using the following code:
GroupChannelParams params = GroupChannelParams();
params.name = _nameController.text;
params.customType = _selectedType;
params.isPublic = _isPublic;
if (_isPublic) {
params.accessCode = _accessCodeController.text.isEmpty
? null
: _accessCodeController.text;
params.isDiscoverable = _isDiscoverable;
}
params.userIds = _userList;
params.operatorUserIds = _operatorList;
and even if I set isPublic
and isDiscoverable
to both true, users who are not included in the userIds
cannot retrieve the created channels. I used the following code for retrieving the public group channels:
PublicGroupChannelListQuery()
..includeEmptyChannel = true
..membershipFilter = PublicGroupChannelMembershipFilter.all
..order = PublicGroupChannelListOrder.chronological
..limit = ChannelListState.limit,
Help me please… Thank you!