destinationServiceId in Sent
This commit is contained in:
parent
af4ad55c68
commit
f90c2b7479
20 changed files with 322 additions and 104 deletions
|
@ -21,6 +21,7 @@ import { getMessageById } from '../messages/getMessageById';
|
|||
import { strictAssert } from './assert';
|
||||
import { repeat, zipObject } from './iterables';
|
||||
import { isOlderThan } from './timestamp';
|
||||
import { getTaggedConversationUuid } from './getConversationUuid';
|
||||
|
||||
export async function deleteStoryForEveryone(
|
||||
stories: ReadonlyArray<StoryDataType>,
|
||||
|
@ -157,8 +158,17 @@ export async function deleteStoryForEveryone(
|
|||
const newStoryMessageRecipients: StoryMessageRecipientsType = [];
|
||||
|
||||
newStoryRecipients.forEach((recipientData, destinationUuid) => {
|
||||
const recipient = window.ConversationController.get(destinationUuid);
|
||||
if (!recipient) {
|
||||
return;
|
||||
}
|
||||
const taggedUuid = getTaggedConversationUuid(recipient.attributes);
|
||||
if (!taggedUuid) {
|
||||
return;
|
||||
}
|
||||
newStoryMessageRecipients.push({
|
||||
destinationUuid,
|
||||
destinationAci: taggedUuid.aci,
|
||||
destinationPni: taggedUuid.pni,
|
||||
distributionListIds: Array.from(recipientData.distributionListIds),
|
||||
isAllowedToReply: recipientData.isAllowedToReply,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue