Fix call history deletion from sync messages
This commit is contained in:
parent
20ddca9684
commit
1cc478180e
6 changed files with 84 additions and 11 deletions
|
@ -18,7 +18,12 @@ export async function onCallLogEventSync(
|
|||
|
||||
if (event === CallLogEvent.Clear) {
|
||||
log.info(`onCallLogEventSync: Clearing call history before ${timestamp}`);
|
||||
await window.Signal.Data.clearCallHistory(timestamp);
|
||||
try {
|
||||
await window.Signal.Data.clearCallHistory(timestamp);
|
||||
} finally {
|
||||
// We want to reset the call history even if the clear fails.
|
||||
window.reduxActions.callHistory.resetCallHistory();
|
||||
}
|
||||
confirm();
|
||||
} else {
|
||||
throw missingCaseError(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue