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

Commit 77734e7

Browse files
committed
Don't try (and fail) to show replies for redacted events
1 parent 3317b60 commit 77734e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/Reply.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ export function makeReplyMixIn(ev?: MatrixEvent): RecursivePartial<IContent> {
173173
}
174174

175175
export function shouldDisplayReply(event: MatrixEvent): boolean {
176+
if (event.isRedacted()) {
177+
return false;
178+
}
179+
176180
const inReplyTo = event.getWireContent()?.["m.relates_to"]?.["m.in_reply_to"];
177181
if (!inReplyTo) {
178182
return false;

0 commit comments

Comments
 (0)