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.
roomId
The chatroom IDrequest
The chatroom information to be modifiedneedNotify
Specify whether to notify chatroom members of the modified chatroom information.notifyExtension
The 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,
);
}