addAttributes method

Future<Map<String, int>?> addAttributes({
  1. required String roomId,
  2. required Map<String, String> attributes,
  3. bool deleteWhenLeft = false,
  4. bool overwrite = false,
})

Implementation

Future<Map<String, int>?> addAttributes({
  required String roomId,
  required Map<String, String> attributes,
  bool deleteWhenLeft = false,
  bool overwrite = false,
}) {
  return checkResult(ChatSDKEvent.addChatRoomAttributes, () {
    return Client.getInstance.chatRoomManager.addAttributes(roomId,
        attributes: attributes,
        deleteWhenLeft: deleteWhenLeft,
        overwrite: overwrite);
  });
}