leave method

Future<void> leave(
  1. {bool? shouldRemoveOperatorStatus}
)

Leaves this channel. Set shouldRemoveOperatorStatus to true if you want to remove the operator status.

Implementation

Future<void> leave({bool? shouldRemoveOperatorStatus}) async {
  sbLog.i(StackTrace.current);

  await chat.apiClient.send(GroupChannelLeaveRequest(
    chat,
    channelUrl: channelUrl,
    shouldRemoveOperatorStatus: shouldRemoveOperatorStatus,
  ));
  invitedAt = 0;
  joinedAt = 0;
}