Skip to content

Commit 98058e3

Browse files
committed
(doc) message sername conditional display
1 parent 1436393 commit 98058e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ rooms="[
355355

356356
### Messages prop
357357

358-
Message objects are rendered differently depending on their type. Currently, only text, emoji and file types are supported.<br>
359-
Each message object has a `sender_id` field which holds the id of the corresponding agent. If `sender_id` matches the `currentUserId` prop, specific UI and actions will be implemented
358+
Message objects are rendered differently depending on their type. Currently, only text, emoji and file types are supported.<br><br>
359+
Each message object has a `sender_id` field which holds the id of the corresponding agent. If `sender_id` matches the `currentUserId` prop, specific UI and actions will be implemented.<br><br>
360+
Note: `username` will be displayed on each message of corresponding agents if at least 3 users are in the room.
360361

361362
```javascript
362363
messages="[

0 commit comments

Comments
 (0)