fix(federation): fix reaction relay using wrong ID for message lookup

Reaction outbox events used reactionId (add) or a composite dedup key
(remove) as the event messageId. The receiver looked up dm_messages by
sourceMessageId = event.messageId, which never matched because it was
searching for a reactionId, not the actual message ID.

Fix: include the actual DM messageId in the reaction payload JSON.
The receiver now uses event.reaction.messageId for the lookup, with
fallback to event.messageId for backward compatibility.
This commit is contained in:
Jannis Braun
2026-03-26 14:27:48 +01:00
parent 086195aa7c
commit a21243256e
3 changed files with 11 additions and 4 deletions
+1
View File
@@ -744,6 +744,7 @@ export interface FederationRelayEvent {
}
export interface FederationRelayReaction {
messageId?: string;
userId: string;
homeUserId: string;
emoji: string;