unMuteChatRoomMembers method
~english 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 EMError. ~end
~chinese 解除禁言。
仅聊天室所有者和管理员可调用此方法。
Param roomId 聊天室 ID。
Param unMuteMembers 解除禁言的用户列表。
Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 EMError。 ~end
Implementation
Future<void> unMuteChatRoomMembers(
String roomId,
List<String> unMuteMembers,
) async {
try {
Map req = {"roomId": roomId, "unMuteMembers": unMuteMembers};
Map result = await Client.instance.chatRoomManager
.callNativeMethod(ChatMethodKeys.unMuteChatRoomMembers, req);
EMError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}