diff --git a/config.php b/config.php index 98b9c41..768a6fc 100644 --- a/config.php +++ b/config.php @@ -1,7 +1,7 @@
- chat + chat diff --git a/public/plugins/chat/chat.js b/public/plugins/chat/chat.js index adfe063..5a778c3 100644 --- a/public/plugins/chat/chat.js +++ b/public/plugins/chat/chat.js @@ -749,7 +749,12 @@ function init() { $('chat-refresh-btn').addEventListener('click', () => pollOnce().then(loadConversations)); $('chat-new-btn').addEventListener('click', openPickView); $('chat-empty-start')?.addEventListener('click', openPickView); - $('chat-header-back').addEventListener('click', () => { showListView(); loadConversations(); }); + const gotoList = () => { showListView(); loadConversations(); }; + $('chat-header-back').addEventListener('click', gotoList); + // Clicking the "chat" title is the same as hitting the back caret — + // a second affordance so users don't have to aim at a small icon. + // No-op when already on the list (showListView is idempotent). + $('chat-flyout-title')?.addEventListener('click', gotoList); $('chat-pick-back').addEventListener('click', showListView); $('chat-thread-form').addEventListener('submit', sendMessage); $('chat-thread-info')?.addEventListener('click', openRoomInfo);