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