unMuteAllChatRoomMembers method

Future<void> unMuteAllChatRoomMembers(
  1. String roomId
)

解除所有成员的禁言状态。

仅聊天室所有者和管理员可调用此方法。

Param roomId 聊天室 ID。

Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 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;
  }
}