mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 08:58:19 +01:00
Fix hanging "Clear All Data" on Windows
This commit is contained in:
committed by
Scott Nonnenberg
parent
03eaa9eb3e
commit
fe505a7f2f
@@ -36,11 +36,23 @@
|
||||
try {
|
||||
await Logs.deleteAll();
|
||||
|
||||
window.log.info('clearAllData: deleted all logs');
|
||||
|
||||
await window.Signal.Data.removeAll();
|
||||
|
||||
window.log.info('clearAllData: emptied database');
|
||||
|
||||
await window.Signal.Data.close();
|
||||
|
||||
window.log.info('clearAllData: closed database');
|
||||
|
||||
await window.Signal.Data.removeDB();
|
||||
|
||||
window.log.info('clearAllData: removed database');
|
||||
|
||||
await window.Signal.Data.removeOtherData();
|
||||
|
||||
window.log.info('clearAllData: removed all other data');
|
||||
} catch (error) {
|
||||
window.log.error(
|
||||
'Something went wrong deleting all data:',
|
||||
|
||||
Reference in New Issue
Block a user