muteAllChatRoomMembers method
- String roomId
Mutes all members.
Only the chat room owner or admin can call this method.
This method does not work for the chat room owner, admin, and members added to the allow list.
Param roomId
The chat room ID.
Throws A description of the exception. See ChatError.
Implementation
Future<void> muteAllChatRoomMembers(String roomId) async {
Map req = {"roomId": roomId};
Map result = await _channel.invokeMethod(
ChatMethodKeys.muteAllChatRoomMembers,
req,
);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}