enter method

Future<void> enter()

Enters this channel. The current User becomes a participant of this channel.

Implementation

Future<void> enter() async {
  sbLog.i(StackTrace.current);

  final cmd = Command.buildEnterChannel(this);
  final result = await chat.commandManager.sendCommand(cmd);
  participantCount = result?.payload['participant_count'];

  chat.chatContext.enteredOpenChannelUrls.add(channelUrl);
  sbLog.i(
    StackTrace.current,
    '[add()] enteredOpenChannels: ${chat.chatContext.enteredOpenChannelUrls.length}',
  );
}