set Chat Room Entries
Batch set custom attributes for a chatroom
Parameters
The ID of the chatroom
The chatroom attributes. 1. The size of the chatRoomEntryMap collection is limited to KV_MAX_NUMBER_LIMIT
. Exceeding this limit will return the error code KV_STORE_OUT_OF_LIMIT. 2. The key supports a combination of uppercase and lowercase letters, numbers, and special symbols (+ = - _), with a maximum length of 128 characters. The value is the corresponding attribute value, with a maximum length of 4096 characters.
Indicates whether to automatically delete the Key-Value pair when the user goes offline or exits.
Indicates whether to force overwrite.
The callback for setting chatroom attributes onError. When CoreErrorCode is KV_STORE_NOT_ALL_SUCCESS (23428), the failMap will contain values (key represents the failed key, and value represents the corresponding error code).