unbanUser method

Future<void> unbanUser(
  1. {required String userId}
)

Unbans User. Operators can unban User who has been banned from this channel.

Implementation

Future<void> unbanUser({required String userId}) async {
  sbLog.i(StackTrace.current, 'userId: $userId');
  checkUnsupportedAction();

  if (userId.isEmpty) {
    throw InvalidParameterException();
  }

  await chat.apiClient.send(ChannelUserUnbanRequest(
    chat,
    targetId: userId,
    channelType: channelType,
    channelUrl: channelUrl,
  ));
}