GroupChannelOperation extension

GroupChannelOperation

on

Methods

acceptInvitation({String? accessCode}) Future<void>

Available on GroupChannel, provided by the GroupChannelOperation extension

Accepts the invitation sent to the current User. After the acceptance, the User will be joined to this GroupChannel.
declineInvitation() Future<void>

Available on GroupChannel, provided by the GroupChannelOperation extension

Declines the invitation sent to the current User.
invite(List<String> userIds) Future<void>

Available on GroupChannel, provided by the GroupChannelOperation extension

Invites Users top this channel.
join({String? accessCode}) Future<void>

Available on GroupChannel, provided by the GroupChannelOperation extension

Joins this channel if this channel is public.
leave({bool? shouldRemoveOperatorStatus}) Future<void>

Available on GroupChannel, provided by the GroupChannelOperation extension

Leaves this channel. Set shouldRemoveOperatorStatus to true if you want to remove the operator status.
resetMyHistory() Future<void>

Available on GroupChannel, provided by the GroupChannelOperation extension

Resets the chat history of this channel for the current User. After this call, the messages created before the call will not be loaded.