Make open chat persistent on mobile
This commit is contained in:
parent
b1f7938b37
commit
ff6ae0c734
1 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue