destinationServiceId in Sent

This commit is contained in:
Fedor Indutny
2023-06-29 21:17:27 +02:00
committed by GitHub
parent af4ad55c68
commit f90c2b7479
20 changed files with 322 additions and 104 deletions

View File

@@ -57,12 +57,15 @@ export async function onStoryRecipientUpdate(
Set<string>
>();
data.storyMessageRecipients.forEach(item => {
if (!item.destinationUuid) {
const { destinationAci, destinationPni } = item;
const destinationId = destinationAci || destinationPni;
if (!destinationId) {
return;
}
const convo = window.ConversationController.get(
normalizeUuid(item.destinationUuid, `${logId}.destinationUuid`)
normalizeUuid(destinationId, `${logId}.destinationId`)
);
if (!convo || !item.distributionListIds) {