diff --git a/Changes b/Changes
index a1f869e5a..18ebcd139 100644
--- a/Changes
+++ b/Changes
@@ -6,6 +6,7 @@ Revision history for perl distribution Convos
- Fix not fetching channel mode if conversation is frozen
- Fix not showing channel mode when conversation is loaded
- Fix updating connection settings when changing connections
+ - Fix "No" button when going to a closed conversation
8.03 2023-10-31T08:39:00+0900
- Bumped dependencies
diff --git a/assets/page/Chat.svelte b/assets/page/Chat.svelte
index 8f462431c..bbfb927b8 100644
--- a/assets/page/Chat.svelte
+++ b/assets/page/Chat.svelte
@@ -71,17 +71,14 @@ function onRouteClick(e) {
if (!aEl) return;
const isThumbnail = aEl.classList.contains('le-thumbnail');
- const preventDefault = aEl.classList.contains('prevent-default');
- if (isThumbnail || preventDefault) e.preventDefault();
if (isThumbnail) return showFullscreen(e, aEl.querySelector('img'));
- const isSafe = preventDefault || aEl.closest('.embed');
- const action = isSafe && aEl.hash.match(/action:([a-z]+):(.*)$/) || ['all', 'unknown', 'value'];
+ const action = aEl.hash.match(/action:([a-z]+):(.*)$/) || ['all', 'unknown', 'value'];
+ if (action[1] !== 'unknown') e.preventDefault();
action[2] = decodeURIComponent(action[2]);
- if (['close', 'join', 'whois'].indexOf(action[1]) !== -1) {
+ if (['join', 'whois'].indexOf(action[1]) !== -1) {
conversation.send('/' + action[1] + ' ' + action[2]);
- if (action[1] === 'close') route.go('/settings/conversation');
}
else if (action[1] === 'expand') {
const msg = conversation.messages.get(action[2]);
@@ -176,10 +173,10 @@ function setConversationFromUser(user) {
{nbsp(message.ts.toLocaleString())}
{$l('Do you want to chat with "%1"?', $conversation.name)}
-
{$l('Do you want to join?')}
-