feat: restore session on app launch instead of failing to login screen
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
// ─── Auth ─────────────────────────────────────────────────────────────────
|
||||
async function init() {
|
||||
try {
|
||||
user = await cmd<User>('get_me');
|
||||
user = await cmd<User>('restore_session');
|
||||
view = 'app';
|
||||
await loadRooms();
|
||||
contacts = await cmd<User[]>('get_contacts').catch(() => []);
|
||||
|
||||
Reference in New Issue
Block a user