GroupChannelOperation extension




acceptInvitation({String? accessCode}) Future<void>
Accepts the invitation sent to the current User. After the acceptance, the User will be joined to this GroupChannel.
declineInvitation() Future<void>
Declines the invitation sent to the current User.
invite(List<String> userIds) Future<void>
Invites Users top this channel.
join({String? accessCode}) Future<void>
Joins this channel if this channel is public.
leave({bool? shouldRemoveOperatorStatus}) Future<void>
Leaves this channel. Set shouldRemoveOperatorStatus to true if you want to remove the operator status.
resetMyHistory() Future<void>
Resets the chat history of this channel for the current User. After this call, the messages created before the call will not be loaded.