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 aca34a7 commit 0082352Copy full SHA for 0082352
package/src/components/MessageList/MessageFlashList.tsx
@@ -217,22 +217,22 @@ const getItemTypeInternal = (message: LocalMessage) => {
217
return 'message-with-shared-location';
218
}
219
220
- if (message.deleted_at) {
221
- return 'deleted-message';
222
- }
223
-
224
if (message.text) {
225
return 'message-with-text';
226
227
228
return 'message-with-nothing';
229
230
+ if (message.type === 'deleted') {
+ return 'deleted-message';
+ }
+
231
if (message.type === 'system') {
232
return 'system-message';
233
234
235
- return 'unresolvable-type';
+ return 'generic-message';
236
};
237
238
const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) => {
0 commit comments