isMemberInChatRoomMuteList method

Future<bool> isMemberInChatRoomMuteList(
  1. String roomId
)

~english Checks whether the member is in the chat room mute list. Param roomId The chat room ID. Return Whether the member is in the chat room mute list. Throws A description of the exception. See ChatError. ~end ~chinese 检测自己是否在聊天室禁言列表中。 Param roomId 聊天室 ID。 Return 是否在聊天室禁言列表中。 Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 ChatError。 ~end

Implementation

Future<bool> isMemberInChatRoomMuteList(String roomId) async {
  Map req = {"roomId": roomId};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.isMemberInChatRoomMuteList, req);
  try {
    ChatError.hasErrorFromResult(result);
    return result.boolValue(ChatMethodKeys.isMemberInChatRoomMuteList);
  } on ChatError catch (e) {
    throw e;
  }
}