isMemberInChatRoomMuteList method

Future<bool> isMemberInChatRoomMuteList(
  1. String roomId
)

Checks whether the current user is on the chatroom mute list.

Param roomId The chatroom ID.

Returns True if the current user is muted, false otherwise.

Throws Exception description, see ChatError.

Implementation

Future<bool> isMemberInChatRoomMuteList(String roomId) async {
  try {
    Map req = {"roomId": roomId};
    Map result = await platform_interface.Client.instance.chatRoomManager.callNativeMethod(
      ChatMethodKeys.isMemberInChatRoomMuteList,
      req,
    );
    ChatError.hasErrorFromResult(result);
    return result.boolValue(ChatMethodKeys.isMemberInChatRoomMuteList);
  } catch (e) {
    rethrow;
  }
}