updateChatroomInfo method Null safety
Edit the chatroom information. Only the chatroom creator and admins have permission to perform the operation. You can determine whether to trigger a notification (notification type: NIMChatroomNotificationTypes.chatRoomInfoUpdated ) when the chatroom information is modified.
roomIdThe chatroom IDrequestThe chatroom information to be modifiedneedNotifySpecify whether to notify chatroom members of the modified chatroom information.notifyExtensionThe extension field of the notification on the modified chatroom information
Implementation
Future<NIMResult<void>> updateChatroomInfo({
required String roomId,
required NIMChatroomUpdateRequest request,
bool needNotify = true,
Map<String, Object>? notifyExtension,
}) {
return _platform.updateChatroomInfo(
roomId: roomId,
request: request,
needNotify: needNotify,
notifyExtension: notifyExtension,
);
}