Fix repeated call messages for timestamp updates

This commit is contained in:
Jamie Kyle 2024-11-19 16:04:34 -08:00 committed by GitHub
parent 6bf7151745
commit 8cb80f66dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1497,6 +1497,10 @@ export async function updateLocalGroupCallHistoryTimestamp(
if (conversation == null) { if (conversation == null) {
return null; return null;
} }
return conversation.queueJob<CallHistoryDetails | null>(
'updateLocalGroupCallHistoryTimestamp',
async () => {
const peerId = getPeerIdFromConversation(conversation.attributes); const peerId = getPeerIdFromConversation(conversation.attributes);
const prevCallHistory = const prevCallHistory =
@ -1509,7 +1513,9 @@ export async function updateLocalGroupCallHistoryTimestamp(
formatCallHistory(prevCallHistory) formatCallHistory(prevCallHistory)
); );
} else { } else {
log.info('updateLocalGroupCallHistoryTimestamp: No previous call history'); log.info(
'updateLocalGroupCallHistoryTimestamp: No previous call history'
);
return null; return null;
} }
@ -1532,3 +1538,5 @@ export async function updateLocalGroupCallHistoryTimestamp(
return updatedCallHistory; return updatedCallHistory;
} }
);
}