feat: restore session on app launch instead of failing to login screen
This commit is contained in:
@@ -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(() => []);
|
||||||
|
|||||||
Reference in New Issue
Block a user