forceSetChatRoomEntry

public abstract void forceSetChatRoomEntry(String chatRoomId, String key, String value, boolean sendNotification, boolean autoDelete, String notificationExtra, OperationCallback callback)

Forces the setting of custom attributes for a chatroom.

If the key does not exist, the attribute is added; if the key already exists, the attribute's value is updated.Note: The chatroom status storage feature must be enabled first.

Parameters

chatRoomId

The ID of the chatroom

key

The name of the chatroom attribute. The key supports a combination of uppercase and lowercase English letters, numbers, and special symbols + = - _. The maximum length is 128 characters.

value

The value corresponding to the chatroom attribute. The maximum length is 4096 characters.

sendNotification

Whether to send a notification. If a notification is sent, the SDK will receive the notification message ChatRoomKVNotiMessage.

autoDelete

Whether to delete the attribute after exiting

notificationExtra

Custom fields for the notification. The notification message will include this field. The maximum length is 2 KB.

callback

The callback for setting the chatroom attributes