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(() => {
|
||||
if (!activeChatState) {
|
||||
elements.appContainer.classList.add('no-active-chat');
|
||||
ui.toggleChatState(false);
|
||||
// ui.toggleChatState(false);
|
||||
}
|
||||
}, 350);
|
||||
} else {
|
||||
|
|
@ -282,9 +282,9 @@ async function closeActiveChat(isPopState = false) {
|
|||
}
|
||||
|
||||
if (!isPopState) {
|
||||
if (window.location.hash.startsWith('#chat-')) {
|
||||
history.back();
|
||||
}
|
||||
// if (window.location.hash.startsWith('#chat-')) {
|
||||
// history.back();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue