Remove useless set of message recipients
This commit is contained in:
parent
41a4643380
commit
794d910d4e
1 changed files with 0 additions and 7 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue