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) ); };