diff options
| author | Adam Soltys <[email protected]> | 2026-09-20 05:02:43 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-20 05:02:43 -0700 |
| commit | f60007bc77ecb0486b4f15d9e69af59952925c30 (patch) | |
| tree | 61b6439f1d309398cd374472f00b41b75ed6959f | |
| parent | 7297983280615c1855b073c091f5ab7c2e529290 (diff) | |
| download | coinosv3-f60007bc77ecb0486b4f15d9e69af59952925c30.tar.gz coinosv3-f60007bc77ecb0486b4f15d9e69af59952925c30.zip | |
Notifications: a reaction, boost or zap opens its note with the who-panel unfolded.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
| -rw-r--r-- | src/features/messages.js | 11 |
1 files changed, 8 insertions, 3 deletions
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' : ''), |
