From f60007bc77ecb0486b4f15d9e69af59952925c30 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 20 Sep 2026 05:02:43 -0700 Subject: Notifications: a reaction, boost or zap opens its note with the who-panel unfolded. Co-Authored-By: Claude Fable 5.1 --- src/features/messages.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/features/messages.js b/src/features/messages.js index 2f2f647..194a264 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -6677,9 +6677,14 @@ export function messagesFeature(ctx) { if (ev) openNoteThread(ev); else openNoteRef({ id: x.id }).catch(() => {}); } else if (msg && msg.peer) { ui.msgView = 'dm'; ui.msgPeer = msg.peer; ui.msgStick = true; stopNotifWatch(); render(); } else if (msg) { ui.msgView = 'room'; ui.msgCommunity = msg.cid; ui.msgChannel = msg.chId; ui.msgStick = true; stopNotifWatch(); render(); } - else if (target) openNoteThread(target); - // a note we couldn't find is asked for again on tap, hints and all - else if (x.target) openNoteRef({ id: x.target, relays: x.hint || [] }).catch(() => {}); + else { + // a reaction, boost or zap: land on the note with its who-panel + // already unfolded, so the tap answers "who?" without a second one + if (x.target) whoOpenIds.add(x.target); + if (target) openNoteThread(target); + // a note we couldn't find is asked for again on tap, hints and all + else if (x.target) openNoteRef({ id: x.target, relays: x.hint || [] }).catch(() => {}); + } }; return h('div', { class: 'row alert-row' + (x.ts > notifSeenAtOpen ? ' fresh' : ''), -- cgit v1.2.3