Bug fixed multiple notification when user leaves by the side menu and comes back on chat without logining out

This commit is contained in:
NigeParis 2025-11-29 14:16:20 +01:00
parent 0eba95a402
commit 91afd0ebde
3 changed files with 46 additions and 30 deletions

View file

@ -196,7 +196,6 @@ export async function handleRoute() {
return navigateTo(`/login?returnTo=${encodeURIComponent(window.location.pathname)}`)
const app = document.getElementById('app')!;
document.dispatchEvent(new CustomEvent('ft:pageChange' as any, {} as any) as any);
document.dispatchEvent(new CustomEvent('ft:tabChange' as any, {} as any) as any);
let ret = await executeRouteHandler(route_handler, window.location.pathname, args)
app.innerHTML = ret.html;
if (ret.postInsert) {