cetirizine

An experimental matrix client written in reactjs utilizing tailwind and storybook
git clone git://archive.git.mtrnord.blog/MTRNord/cetirizine.git
Log | Files | Refs | README | LICENSE

commit 458b9388d71cbc657fcb6e1c965111224128ef2e
parent 789b88d10ff06abf8fb9ff0a315fb486a0ad832b
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon,  8 May 2023 13:10:04 +0200

Make sure to render replies

Diffstat:
MREADME.md | 1+
Msrc/app/sdk/api/apiTypes.ts | 1+
Msrc/pages/MainPage.tsx | 5++++-
3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -1,4 +1,5 @@ [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](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) => {