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