Fix call history read syncs
This commit is contained in:
parent
688de5a99b
commit
5a5b681b51
7 changed files with 187 additions and 46 deletions
|
@ -1324,12 +1324,17 @@ export async function markAllCallHistoryReadAndSync(
|
|||
log.info(
|
||||
`markAllCallHistoryReadAndSync: Marking call history read before (${latestCall.callId}, ${latestCall.timestamp})`
|
||||
);
|
||||
let count: number;
|
||||
if (inConversation) {
|
||||
await DataWriter.markAllCallHistoryReadInConversation(latestCall);
|
||||
count = await DataWriter.markAllCallHistoryReadInConversation(latestCall);
|
||||
} else {
|
||||
await DataWriter.markAllCallHistoryRead(latestCall);
|
||||
count = await DataWriter.markAllCallHistoryRead(latestCall);
|
||||
}
|
||||
|
||||
log.info(
|
||||
`markAllCallHistoryReadAndSync: Marked ${count} call history messages read`
|
||||
);
|
||||
|
||||
const ourAci = window.textsecure.storage.user.getCheckedAci();
|
||||
|
||||
const callLogEvent = new Proto.SyncMessage.CallLogEvent({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue