updateChatroomMyMemberInfo method

Future<NIMResult<void>> updateChatroomMyMemberInfo(
  1. {required String roomId,
  2. required NIMChatroomUpdateMyMemberInfoRequest request,
  3. bool needNotify = true,
  4. Map<String, dynamic>? notifyExtension}
)

更新聊天室内的自身信息

  • roomId 聊天室id
  • request 可更新的本人角色信息
  • needNotify 是否通知
  • notifyExtension 更新聊天室信息扩展字段,这个字段会放到更新聊天室信息通知的扩展字段中

Implementation

Future<NIMResult<void>> updateChatroomMyMemberInfo({
  required String roomId,
  required NIMChatroomUpdateMyMemberInfoRequest request,
  bool needNotify = true,
  Map<String, dynamic>? notifyExtension,
}) async {
  return _platform.updateChatroomMyMemberInfo(
    roomId: roomId,
    request: request,
    needNotify: needNotify,
    notifyExtension: notifyExtension,
  );
}