Ensure that delete logs timeout does not run after resolution

This commit is contained in:
Josh Perez 2021-09-20 20:25:29 -04:00 committed by GitHub
parent 4e43459d34
commit 4e6c415ad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 16 deletions

View file

@ -2,10 +2,11 @@
// SPDX-License-Identifier: AGPL-3.0-only
import * as log from '../logging/log';
import { deleteAllLogs } from '../util/deleteAllLogs';
export async function deleteAllData(): Promise<void> {
try {
await window.Signal.Logs.deleteAll();
await deleteAllLogs();
log.info('deleteAllData: deleted all logs');