wip: migrate to desktop2

This commit is contained in:
2024-02-12 20:04:45 +07:00
parent 1950cb59a2
commit ed52105c02
18 changed files with 172 additions and 177 deletions

View File

@@ -54,7 +54,7 @@ export class Ark {
const event = JSON.parse(cmd) as Event;
return event;
} catch (e) {
console.error(String(e));
return null;
}
}
@@ -66,7 +66,7 @@ export class Ark {
const cmd: Event[] = await invoke("get_text_events", { limit, until });
return cmd;
} catch (e) {
console.error(String(e));
return [];
}
}
@@ -120,7 +120,7 @@ export class Ark {
const cmd: Event[] = await invoke("get_event_thread", { id });
return cmd;
} catch (e) {
console.error(String(e));
return [];
}
}
@@ -165,8 +165,8 @@ export class Ark {
try {
const cmd: Metadata = await invoke("get_profile", { id });
return cmd;
} catch (e) {
console.error(String(e));
} catch {
return null;
}
}