fix(msc4459): remove duplicate matrix client argument

This commit is contained in:
Rye committed 2026-05-03 17:39:25 +02:00
1 parent f518ff50fe
commit 0b8b7bc534
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -657,7 +657,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
const lastMessageId = lastMessage?.getId();
if (lastMessageId) {
toggleReaction(mx, room, lastMessageId, key, mx, shortcode);
toggleReaction(mx, room, lastMessageId, key, shortcode);
}
}
+1 -2
View File
@@ -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)
);
};