You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -525,6 +525,7 @@ Message states:
525
525
-`distributed: true` two checkmarks
526
526
-`seen: true` two blue checkmarks
527
527
-`deleted: true` grey background with deleted message text
528
+
-`failure: true` red clickable failure icon
528
529
529
530
```javascript
530
531
messages="[
@@ -542,6 +543,7 @@ messages="[
542
543
distributed: true,
543
544
seen: true,
544
545
deleted: false,
546
+
failure: true,
545
547
disableActions: false,
546
548
disableReactions: false,
547
549
files: [
@@ -597,6 +599,7 @@ messages="[
597
599
|`delete-message`|`{ roomId, message }`| Deleted a message |
598
600
|`open-file`|`{ message, file }`| Clicked to view or download a file |
599
601
|`open-user-tag`(3) |`{ user }`| Clicked on a user tag inside a message |
602
+
|`open-failed-message`|`{ roomId, message }`| Clicked on the failure icon next to a message |
600
603
|`add-room`| - | Clicked on the plus icon next to searchbar |
601
604
|`room-action-handler`(4) |`{ roomId, action }`| Clicked on the vertical dots icon inside a room |
602
605
|`menu-action-handler`(5) |`{ roomId, action }`| Clicked on the vertical dots icon inside a room |
@@ -605,7 +608,7 @@ messages="[
605
608
|`room-info` (7) |`room`| Clicked the room header bar |
606
609
|`toggle-rooms-list`|`{ opened }`| Clicked on the toggle icon inside a room header |
607
610
|`textarea-action-handler`(8) |`{ roomId, message }`| Clicked on custom icon inside the footer |
608
-
|`typing-message`|`{ message, roomId }`| Started typing a message |
611
+
|`typing-message`|`{ roomId, message }`| Started typing a message |
609
612
610
613
**(1)**`fetch-messages` is triggered every time a room is opened. If the room is opened for the first time, the `options` param will hold `reset: true`.<br>
611
614
**(1)**`fetch-messages` should be a method implementing a pagination system. Its purpose is to load older messages of a conversation when the user scroll on top.
0 commit comments