Merge branch 'worktree-agent-ad3c3b03391b6c6fc' into claude/relaxed-maxwell-c10wof
# Conflicts: # src/i18n/locales/ar.ts # src/i18n/locales/de.ts # src/i18n/locales/en.ts # src/i18n/locales/es.ts # src/i18n/locales/fr.ts # src/i18n/locales/hi.ts # src/i18n/locales/id.ts # src/i18n/locales/it.ts # src/i18n/locales/ja.ts # src/i18n/locales/ko.ts # src/i18n/locales/nl.ts # src/i18n/locales/pl.ts # src/i18n/locales/pt.ts # src/i18n/locales/ru.ts # src/i18n/locales/th.ts # src/i18n/locales/tr.ts # src/i18n/locales/vi.ts # src/i18n/locales/zh.ts
This commit is contained in:
35 files changed
+1779
No files matched your search
@@ -9,6 +9,7 @@ import { createSync, type SyncEngine, type SyncStatus } from './lib/cloud/sync'
|
||||
import { deleteDatabase, readOtherDatabase } from './lib/db'
|
||||
import { cloudFetch } from './lib/cloud/api'
|
||||
import { signOut } from './lib/cloud/auth'
|
||||
import { disablePush, forgetPushLocally } from './lib/push'
|
||||
import { dbNameFor, scopedKey } from './lib/scope'
|
||||
import { isPlainObject, LIMITS, readStorage, storageGet, storageSet } from './lib/security'
|
||||
import { mediaDB, requestPersistentStorage } from './lib/db'
|
||||
@@ -461,6 +462,8 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
||||
if (engine && navigator.onLine) await engine.syncNow()
|
||||
if (!force && engine && engine.status().pending > 0) return 'pending'
|
||||
engine?.stop()
|
||||
// Cet appareil ne doit plus recevoir les notifications push de ce compte
|
||||
await disablePush().catch(() => {})
|
||||
await wipeAccountFromDevice(userId)
|
||||
await signOut()
|
||||
return 'done'
|
||||
@@ -473,6 +476,7 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
||||
})
|
||||
if (!res.ok) throw new Error(res.status === 429 ? t('account.err.deleteRate') : t('account.err.delete'))
|
||||
syncRef.current?.stop()
|
||||
await forgetPushLocally().catch(() => {})
|
||||
await wipeAccountFromDevice(userId)
|
||||
await signOut()
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user