From 690a3c177778bdbdee61da5285745e39cfc2be33 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 5 Oct 2026 21:10:21 -0700 Subject: Feed: leaving via the bottom nav closes the composer (its words stay the draft), so the Post button is back when you return Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01YRC6aKhwAud231ot9FPmhi --- src/features/messages.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/features/messages.js b/src/features/messages.js index 86b6c75..e97fa37 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -9801,7 +9801,14 @@ export function messagesFeature(ctx) { const icon = (paths) => ''; const button = (id, label, paths, onClick) => h('button', { type: 'button', class: 'app-nav-button' + (!visitor && (id === 'messages' ? hook('unreadMessages') : id === 'notifs' && notifsWaiting()) ? ' unread' : ''), - 'aria-label': label, 'aria-current': active === id ? 'page' : undefined, onClick, + 'aria-label': label, 'aria-current': active === id ? 'page' : undefined, + onClick: (e) => { + // An open composer doesn't follow you around: back on the feed it sat + // at the top, out of sight, and hid the Post button. Its words are + // already the saved draft (it still shows, and Post reopens it). + ui.profCompose = null; + onClick(e); + }, }, h('span', { html: icon(paths) }), h('span', {}, label)); return h('nav', { class: 'app-bottom-nav', 'data-key': 'app-bottom-nav', -- cgit v1.2.3