commit 458b9388d71cbc657fcb6e1c965111224128ef2e
parent 789b88d10ff06abf8fb9ff0a315fb486a0ad832b
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 8 May 2023 13:10:04 +0200
Make sure to render replies
Diffstat:
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -1,4 +1,5 @@
[](https://percy.io/33db3ec3/cetirizine)
+
# Cetirizine
A Matrix client using sliding sync build for MTRNords spepcific workflow.
diff --git a/src/app/sdk/api/apiTypes.ts b/src/app/sdk/api/apiTypes.ts
@@ -298,6 +298,7 @@ export interface IRoomEvent<Content = any> {
sender: string;
type: string;
unsigned?: any;
+ "m.relates.to"?: any;
[key: string]: any;
}
diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx
@@ -45,7 +45,10 @@ const ChatView: FC<ChatViewProps> = memo(({ roomID, scrollRef }) => {
}).sort((a, b) => {
return a.origin_server_ts - b.origin_server_ts;
})
- const no_relations = dedupedEvents.filter(event => event.type !== "m.reaction" && event.type !== "m.room.redaction" && !event.content["m.relates_to"]);
+ const no_relations = dedupedEvents.filter(event => event.type !== "m.reaction" &&
+ event.type !== "m.room.redaction" &&
+ event.content["m.relates_to"]?.["rel_type"] !== "m.replace"
+ );
Promise.all(no_relations?.map(async (event, index) => {