mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-06 00:32:26 -08:00
fix(msc4459): remove duplicate matrix client argument
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user