-
Notifications
You must be signed in to change notification settings - Fork 371
Closed
Labels
bugSomething isn't workingSomething isn't workingexample:stream_chat_coreBug in stream_chat_core sample appBug in stream_chat_core sample appsdk-issueUsed for issues/bugs opened/reported by customers or us.Used for issues/bugs opened/reported by customers or us.
Description
With stream_chat_flutter 8.x I used to create channels following the example app:
// in initState()
_channel = StreamChat.of(context).client.channel('messaging');
// then after the user selects the members for the new channel
_channel = chatState.client.channel('messaging', extraData: {
'members': [
..._selectedUsers.map((e) => e.id),
chatState.currentUser!.id,
],
'team': myteam,
});
However, this no longer works with 9.x, I get
StreamChatNetworkError(code: 4, message: GetOrCreateChannel failed with error: "When using member based IDs specify at least 2 members", statusCode: 400, data: ErrorResponse(code: 4, message: GetOrCreateChannel failed with error: "When using member based IDs specify at least 2 members", statusCode: 400,
The example app does not have a create feature, how should channels be created in 9.x?
szechyjs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingexample:stream_chat_coreBug in stream_chat_core sample appBug in stream_chat_core sample appsdk-issueUsed for issues/bugs opened/reported by customers or us.Used for issues/bugs opened/reported by customers or us.