We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1876561 commit 82dfa6bCopy full SHA for 82dfa6b
package/src/components/MessageList/MessageFlashList.tsx
@@ -213,6 +213,10 @@ const getItemTypeInternal = (message: LocalMessage) => {
213
return 'message-with-shared-location';
214
}
215
216
+ if (message.deleted_at) {
217
+ return 'deleted-message';
218
+ }
219
+
220
if (message.text) {
221
const text = message.text;
222
if (text.length <= 50) {
@@ -229,6 +233,10 @@ const getItemTypeInternal = (message: LocalMessage) => {
229
233
return 'message-with-nothing';
230
234
231
235
236
+ if (message.type === 'system') {
237
+ return 'system-message';
238
239
232
240
return 'unresolvable-type';
241
};
242
0 commit comments