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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1531,4 +1537,6 @@ export async function updateLocalGroupCallHistoryTimestamp(
|
||||||
});
|
});
|
||||||
|
|
||||||
return updatedCallHistory;
|
return updatedCallHistory;
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue