unMuteAllChatRoomMembers method

Future<void> unMuteAllChatRoomMembers(
  1. String roomId
)

Unmutes all members.

Only the chat room owner or admin can call this method.

Param roomId The chat room ID.

Throws A description of the exception. See ChatError.

Implementation

Future<void> unMuteAllChatRoomMembers(String roomId) async {
  try {
    Map req = {"roomId": roomId};
    Map result = await platform_interface.Client.instance.chatRoomManager.callNativeMethod(
      ChatMethodKeys.unMuteAllChatRoomMembers,
      req,
    );
    ChatError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}