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
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,7 @@ You can import it as a custom component:
89
89
| messageActions (5) | Array | - | (4) |
90
90
| showFiles | Boolean | - | true |
91
91
| showEmojis | Boolean | - | true |
92
+
| showReactionEmojis | Boolean | - | true |
92
93
| textMessages (6) | Object | - | null |
93
94
| theme (7) | Sring | - | light |
94
95
| colors (8) | Object | - | (8) |
@@ -138,7 +139,7 @@ messageActions="[
138
139
You can use built-in `messageActions` names to trigger specific UI modifications when clicked.<br>
139
140
Currently, `replyMessage`, `editMessage` and `deleteMessage` action names are available.<br>
140
141
If `messageActions` is not set, it will use the default values below.<br>
141
-
If you don't want to display this `messageActions`menu, you can pass it an empty array.
142
+
If you don't want to display this `messageActions`menu, you can pass it an empty array.
142
143
143
144
```javascript
144
145
messageActions="[
@@ -230,7 +231,17 @@ colors="{
230
231
colorReplyUsername: '#0a0a0a',
231
232
colorReply: '#6e6e6e',
232
233
backgroundImage: '#ddd',
233
-
colorNewMessages: '#1976d2'
234
+
colorNewMessages: '#1976d2',
235
+
backgroundReaction: '#eee',
236
+
borderStyleReaction: '1px solid #eee',
237
+
backgroundReactionHover: '#fff',
238
+
borderStyleReactionHover: '1px solid #ddd',
239
+
colorReactionCounter: '#0a0a0a',
240
+
backgroundReactionMe: '#cfecf5',
241
+
borderStyleReactionMe: '1px solid #3b98b8',
242
+
backgroundReactionHoverMe: '#cfecf5',
243
+
borderStyleReactionHoverMe: '1px solid #3b98b8',
244
+
colorReactionCounterMe: '#0b59b3'
234
245
},
235
246
236
247
room: {
@@ -256,6 +267,7 @@ colors="{
256
267
send: '#1976d2',
257
268
sendDisabled: '#9ca6af',
258
269
emoji: '#1976d2',
270
+
emojiReaction: '#828c94',
259
271
document: '#1976d2',
260
272
pencil: '#9e9e9e',
261
273
checkmark: '#0696c7',
@@ -318,6 +330,15 @@ messages="[
318
330
size: 67351,
319
331
type: 'png',
320
332
url: 'https://firebasestorage.googleapis.com/...'
333
+
},
334
+
reactions: {
335
+
wink: [
336
+
1234, // USER_ID
337
+
4321
338
+
],
339
+
laughing: [
340
+
1234
341
+
]
321
342
}
322
343
}
323
344
]"
@@ -335,6 +356,7 @@ messages="[
335
356
| addRoom | - | A user clicks on the plus icon next to searchbar |
336
357
| menuActionHandler (2) |`{ roomId, action }`| A user clicks on the vertical dots icon inside a room |
337
358
| messageActionHandler (3) |`{ roomId, action }`| A user clicks on the dropdown icon inside a message |
359
+
| sendMessageReaction |`{ roomId, messageId, reaction, remove }`| A user clicks on the emoji icon inside a message |
338
360
339
361
(1) `fetchMessages` 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