isMemberInChatRoomAllowList method

Future<bool> isMemberInChatRoomAllowList(
  1. String roomId

Checks whether the member is on the allow list.

Param roomId The chat room ID.

Return Whether the member is on the allow list.

  • true: Yes;
  • false: No. Throws A description of the exception. See ChatError.


Future<bool> isMemberInChatRoomAllowList(String roomId) async {
  Map req = {"roomId": roomId};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.isMemberInChatRoomWhiteListFromServer, req);

  try {
    return result
  } on ChatError catch (e) {
    throw e;