From 0b8b7bc534e3ddea08ddb0cecf5e43c1e3437c40 Mon Sep 17 00:00:00 2001 From: Rye Date: Sun, 3 May 2026 17:39:25 +0200 Subject: [PATCH] fix(msc4459): remove duplicate matrix client argument --- src/app/features/room/RoomInput.tsx | 2 +- src/app/utils/matrix.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/features/room/RoomInput.tsx b/src/app/features/room/RoomInput.tsx index fe00ac076..bc30145c8 100644 --- a/src/app/features/room/RoomInput.tsx +++ b/src/app/features/room/RoomInput.tsx @@ -657,7 +657,7 @@ export const RoomInput = forwardRef( const lastMessageId = lastMessage?.getId(); if (lastMessageId) { - toggleReaction(mx, room, lastMessageId, key, mx, shortcode); + toggleReaction(mx, room, lastMessageId, key, shortcode); } } diff --git a/src/app/utils/matrix.ts b/src/app/utils/matrix.ts index 1a1628c3b..fcb8f77c0 100644 --- a/src/app/utils/matrix.ts +++ b/src/app/utils/matrix.ts @@ -385,7 +385,6 @@ export const toggleReaction = ( room: Room, targetEventId: string, key: string, - matrixClient: MatrixClient, shortcode?: string, timelineSet?: EventTimelineSet ) => { @@ -408,6 +407,6 @@ export const toggleReaction = ( mx.sendEvent( room.roomId, MessageEvent.Reaction as any, - getReactionContent(targetEventId, key, matrixClient, rShortcode) + getReactionContent(targetEventId, key, mx, rShortcode) ); };