feat: update commands

This commit is contained in:
reya
2024-07-26 12:57:26 +07:00
parent ccc5d85fc2
commit 268c1af5b1
8 changed files with 55 additions and 42 deletions

View File

@@ -63,9 +63,9 @@ try {
else return { status: "error", error: e as any };
}
},
async getChatMessages(sender: string) : Promise<Result<string[], string>> {
async getChatMessages(id: string) : Promise<Result<string[], string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("get_chat_messages", { sender }) };
return { status: "ok", data: await TAURI_INVOKE("get_chat_messages", { id }) };
} catch (e) {
if(e instanceof Error) throw e;
else return { status: "error", error: e as any };