From d2f7b98e6cc155fc88b702120e69ac68679cbf40 Mon Sep 17 00:00:00 2001 From: th Date: Wed, 15 Apr 2026 21:30:14 +0200 Subject: [PATCH] chat: clicking the title goes back to the conversation list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same path as the back-caret — a bigger, easier target than the icon. No-op when already on the list. Co-Authored-By: Claude Opus 4.6 (1M context) --- config.php | 2 +- electron/package.json | 2 +- public/plugins/chat/chat.html | 2 +- public/plugins/chat/chat.js | 7 ++++++- 4 files changed, 9 insertions(+), 4 deletions(-) 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);