Skip to content

Commit 18b5cfc

Browse files
committed
(docs) add message indexId
1 parent 4335df6 commit 18b5cfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ Notes:
488488

489489
- `username` will be displayed on each message of corresponding agents if at least 3 users are in the room
490490
- `system` is used to show messages with a specific centered display
491+
- `indexId` can be used if you need to change a message ID that is already displayed in a room, this preventing an animation glitch. For example, when you don't know in advance the message ID your backend will create.
491492

492493
Message states:
493494

@@ -500,6 +501,7 @@ Message states:
500501
messages="[
501502
{
502503
_id: 7890,
504+
indexId: 12092,
503505
content: 'Message 1',
504506
senderId: 1234,
505507
username: 'John Doe',

0 commit comments

Comments
 (0)