mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fix hanging "Clear All Data" on Windows
This commit is contained in:
committed by
Scott Nonnenberg
parent
03eaa9eb3e
commit
fe505a7f2f
12
preload.js
12
preload.js
@@ -371,10 +371,16 @@ try {
|
||||
installGetter('sync-time', 'getLastSyncTime');
|
||||
installSetter('sync-time', 'setLastSyncTime');
|
||||
|
||||
ipc.on('delete-all-data', () => {
|
||||
ipc.on('delete-all-data', async () => {
|
||||
const { deleteAllData } = window.Events;
|
||||
if (deleteAllData) {
|
||||
deleteAllData();
|
||||
if (!deleteAllData) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
await deleteAllData();
|
||||
} catch (error) {
|
||||
window.log.error('delete-all-data: error', error && error.stack);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user