Handle new sync message MarkedAsRead for Calls Tab
This commit is contained in:
parent
b410d14753
commit
c332bd240f
8 changed files with 72 additions and 16 deletions
|
@ -25,6 +25,16 @@ export async function onCallLogEventSync(
|
|||
window.reduxActions.callHistory.resetCallHistory();
|
||||
}
|
||||
confirm();
|
||||
} else if (event === CallLogEvent.MarkedAsRead) {
|
||||
log.info(
|
||||
`onCallLogEventSync: Marking call history read before ${timestamp}`
|
||||
);
|
||||
try {
|
||||
await window.Signal.Data.markAllCallHistoryRead(timestamp);
|
||||
} finally {
|
||||
window.reduxActions.callHistory.updateCallHistoryUnreadCount();
|
||||
}
|
||||
confirm();
|
||||
} else {
|
||||
throw missingCaseError(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue