isMemberInChatRoomMuteList method
- String roomId
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.
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;
}
}