isMemberInChatRoomWhiteList method Null safety
- @Deprecated("Switch to using EMChatManager#isMemberInChatRoomAllowList instead.")
- String roomId
@Deprecated("Switch to using EMChatManager#isMemberInChatRoomAllowList instead.")
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 {@link EMError}.
Implementation
@Deprecated(
"Switch to using EMChatManager#isMemberInChatRoomAllowList instead.")
Future<bool> isMemberInChatRoomWhiteList(String roomId) async {
Map req = {"roomId": roomId};
Map result = await _channel.invokeMethod(
ChatMethodKeys.isMemberInChatRoomWhiteListFromServer, req);
try {
EMError.hasErrorFromResult(result);
return result
.boolValue(ChatMethodKeys.isMemberInChatRoomWhiteListFromServer);
} on EMError catch (e) {
throw e;
}
}