Remove useless set of message recipients

This commit is contained in:
Evan Hahn 2021-05-14 17:35:49 -05:00 committed by Scott Nonnenberg
parent 41a4643380
commit 794d910d4e

View file

@ -3854,9 +3854,6 @@ export class ConversationModel extends window.Backbone
if (this.isPrivate()) {
model.set({ destination: this.getSendTarget() });
}
if (model.isOutgoing()) {
model.set({ recipients: this.getRecipients() });
}
const id = await window.Signal.Data.saveMessage(model.attributes, {
Message: window.Whisper.Message,
});
@ -3943,7 +3940,6 @@ export class ConversationModel extends window.Backbone
// indicator above it. We set it to 'unread' to trigger that placement.
unread: 1,
conversationId: this.id,
// No type; 'incoming' messages are specially treated by conversation.markRead()
sent_at: timestamp,
received_at: window.Signal.Util.incrementMessageCounter(),
received_at_ms: timestamp,
@ -3953,9 +3949,6 @@ export class ConversationModel extends window.Backbone
if (this.isPrivate()) {
model.set({ destination: this.id });
}
if (model.isOutgoing()) {
model.set({ recipients: this.getRecipients() });
}
const id = await window.Signal.Data.saveMessage(model.attributes, {
Message: window.Whisper.Message,
});