Sync stories sent to a group

This commit is contained in:
Josh Perez 2022-08-04 21:13:26 -04:00 committed by GitHub
parent 808118d1e4
commit dca848389c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 25 deletions

View file

@ -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 ?? [];