removeChatRoomMembers method
Removes the specified members from a chat room.
Only the chat room owner or admin can call this method.
Param roomId The chat room ID.
Param members The list of the members to be removed.
Throws A description of the exception. See ChatError.
Implementation
Future<void> removeChatRoomMembers(
String roomId,
List<String> members,
) async {
try {
Map req = {"roomId": roomId, "members": members};
Map result = await platform_interface.Client.instance.chatRoomManager
.callNativeMethod(ChatMethodKeys.removeChatRoomMembers, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}