feat: update ui and add compose dialog

This commit is contained in:
reya
2024-07-29 14:49:13 +07:00
parent a65d5d0c1a
commit 6ceac40394
16 changed files with 913 additions and 345 deletions

View File

@@ -47,6 +47,14 @@ try {
else return { status: "error", error: e as any };
}
},
async getContactList() : Promise<Result<string[], null>> {
try {
return { status: "ok", data: await TAURI_INVOKE("get_contact_list") };
} catch (e) {
if(e instanceof Error) throw e;
else return { status: "error", error: e as any };
}
},
async getChats() : Promise<Result<string[], string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("get_chats") };