Fix repeated call messages for timestamp updates

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-11-19 18:37:24 -06:00 committed by GitHub
parent 3fcf1f160b
commit 192a68c5dc
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;
} }
);
}