Sync stories sent to a group
This commit is contained in:
parent
808118d1e4
commit
dca848389c
5 changed files with 54 additions and 25 deletions
|
@ -1932,6 +1932,24 @@ export default class MessageReceiver
|
|||
timestamp: envelope.timestamp,
|
||||
};
|
||||
|
||||
if (sentMessage && message.groupV2) {
|
||||
const ev = new SentEvent(
|
||||
{
|
||||
destinationUuid: envelope.destinationUuid.toString(),
|
||||
isRecipientUpdate: Boolean(sentMessage.isRecipientUpdate),
|
||||
message,
|
||||
receivedAtCounter: envelope.receivedAtCounter,
|
||||
receivedAtDate: envelope.receivedAtDate,
|
||||
serverTimestamp: envelope.serverTimestamp,
|
||||
timestamp: envelope.timestamp,
|
||||
unidentifiedStatus: sentMessage.unidentifiedStatus,
|
||||
},
|
||||
this.removeFromCache.bind(this, envelope)
|
||||
);
|
||||
this.dispatchAndWait(ev);
|
||||
return;
|
||||
}
|
||||
|
||||
if (sentMessage) {
|
||||
const { storyMessageRecipients } = sentMessage;
|
||||
const recipients = storyMessageRecipients ?? [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue