Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 90d16be

Browse files
committed
fix bug where ThreadSummary failed if no last reply is available
1 parent 1611033 commit 90d16be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/rooms/ThreadSummary.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const ThreadMessagePreview = ({ thread, showDisplayname = false }: IPrevi
9494
await cli.decryptEventIfNeeded(lastReply);
9595
return MessagePreviewStore.instance.generatePreviewForEvent(lastReply);
9696
}, [lastReply, content]);
97-
if (!preview) return null;
97+
if (!preview || !lastReply) return null;
9898

9999
return <>
100100
<MemberAvatar

0 commit comments

Comments
 (0)