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 e9c6b3c409a9b4377202db77c6faa035be6d06c9
parent 63714b3a9bf25d013e450f6950907d6658f1d663
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu,  4 May 2023 22:02:29 +0200

Prepare reactions

Diffstat:
Msrc/pages/MainPage.tsx | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx @@ -58,7 +58,7 @@ const ChatView: FC<ChatViewProps> = memo(({ roomID, scrollRef }) => { }); // Map events to components but also tell components if the previous event was from the same sender and which type it was - const renderedEvents = dedupedEvents?.map((event, index) => { + const renderedEvents = dedupedEvents?.filter(event => event.type !== "m.reaction").map((event, index) => { const previousEvent = dedupedEvents[index - 1]; const previousEventIsFromSameSender = previousEvent?.sender === event.sender; const previousEventType = previousEvent?.type;