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

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

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 }>