Fix repeated call messages for timestamp updates
This commit is contained in:
parent
6bf7151745
commit
8cb80f66dc
1 changed files with 37 additions and 29 deletions
|
@ -1497,6 +1497,10 @@ export async function updateLocalGroupCallHistoryTimestamp(
|
|||
if (conversation == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return conversation.queueJob<CallHistoryDetails | null>(
|
||||
'updateLocalGroupCallHistoryTimestamp',
|
||||
async () => {
|
||||
const peerId = getPeerIdFromConversation(conversation.attributes);
|
||||
|
||||
const prevCallHistory =
|
||||
|
@ -1509,7 +1513,9 @@ export async function updateLocalGroupCallHistoryTimestamp(
|
|||
formatCallHistory(prevCallHistory)
|
||||
);
|
||||
} else {
|
||||
log.info('updateLocalGroupCallHistoryTimestamp: No previous call history');
|
||||
log.info(
|
||||
'updateLocalGroupCallHistoryTimestamp: No previous call history'
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -1531,4 +1537,6 @@ export async function updateLocalGroupCallHistoryTimestamp(
|
|||
});
|
||||
|
||||
return updatedCallHistory;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue