fix(#383): don't attribute room reactions to the room's own name
Adversarial review caught a data-loss defect in the reactor-name fallback. For a reaction in a room from an author not in the local contacts, _resolveContactSenderName returns null and the chain fell through to reactionContact?.name. But reactionContact is the room server, not the reactor, so every unknown-author reaction was attributed to the room's display name. Two distinct unknown authors then both resolved to that one name, so applyReaction's per-reactor dedup treated the second as a duplicate and dropped it, count and all. Fall back to the per-author hex (from the frame's own fourByteRoomContact Key) instead, which is unique per reactor. In a true 1:1 that hex is empty and the contact genuinely is the reactor, so its name stays the correct fallback. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>pull/419/head
parent
e452ab4805
commit
d9afaf45fb
Loading…
Reference in new issue