feat(sidebar): add account data clear action and detail feedback

This commit is contained in:
tisonhuang committed 2026-03-05 10:57:15 +08:00
1 parent 360754737f
commit 459f23bbd6
5 files changed
+493 -15

No files matched your search

+6
View File
@@ -191,6 +191,12 @@ export interface ElectronAPI {
messages?: Message[]
error?: string
}>
clearCurrentAccountData: (options: { clearCache?: boolean; clearExports?: boolean }) => Promise<{
success: boolean
removedPaths?: string[]
warning?: string
error?: string
}>
getContact: (username: string) => Promise<Contact | null>
getContactAvatar: (username: string) => Promise<{ avatarUrl?: string; displayName?: string } | null>
updateMessage: (sessionId: string, localId: number, createTime: number, newContent: string) => Promise<{ success: boolean; error?: string }>