aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/features')
-rw-r--r--src/features/messages.js9
1 files changed, 8 insertions, 1 deletions
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) => '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' + paths + '</svg>';
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',