feat: restore session on app launch instead of failing to login screen

This commit is contained in:
2026-04-18 01:28:13 -04:00
parent eced53aecd
commit fbe37d8310

View File

@@ -36,7 +36,7 @@
// ─── Auth ───────────────────────────────────────────────────────────────── // ─── Auth ─────────────────────────────────────────────────────────────────
async function init() { async function init() {
try { try {
user = await cmd<User>('get_me'); user = await cmd<User>('restore_session');
view = 'app'; view = 'app';
await loadRooms(); await loadRooms();
contacts = await cmd<User[]>('get_contacts').catch(() => []); contacts = await cmd<User[]>('get_contacts').catch(() => []);