removeMembersFromChatRoomWhiteList method Null safety
- @Deprecated("Switch to using EMChatManager#removeMembersFromChatRoomAllowList instead.")
@Deprecated("Switch to using EMChatManager#removeMembersFromChatRoomAllowList instead.")
Removes members from the allow list.
Only the chat room owner or admin can call this method.
Param roomId
The chat room ID.
Param members
The list of members to be removed from the allow list.
Throws A description of the exception. See {@link EMError}.
Implementation
@Deprecated(
"Switch to using EMChatManager#removeMembersFromChatRoomAllowList instead.")
Future<void> removeMembersFromChatRoomWhiteList(
String roomId,
List<String> members,
) async {
Map req = {
"roomId": roomId,
"members": members,
};
Map result = await _channel.invokeMethod(
ChatMethodKeys.removeMembersFromChatRoomWhiteList,
req,
);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}