Make open chat persistent on mobile

This commit is contained in:
天クマ 2026-07-17 11:26:53 -03:00
commit ff6ae0c734

View file

@ -274,7 +274,7 @@ async function closeActiveChat(isPopState = false) {
setTimeout(() => { setTimeout(() => {
if (!activeChatState) { if (!activeChatState) {
elements.appContainer.classList.add('no-active-chat'); elements.appContainer.classList.add('no-active-chat');
ui.toggleChatState(false); // ui.toggleChatState(false);
} }
}, 350); }, 350);
} else { } else {
@ -282,9 +282,9 @@ async function closeActiveChat(isPopState = false) {
} }
if (!isPopState) { if (!isPopState) {
if (window.location.hash.startsWith('#chat-')) { // if (window.location.hash.startsWith('#chat-')) {
history.back(); // history.back();
} // }
} }
} }