Wire up writeAttachment

This commit is contained in:
Daniel Gasienica 2018-03-14 20:44:45 -04:00
parent aa82a2a5fb
commit e0428355be
5 changed files with 27 additions and 3 deletions

View file

@ -10,6 +10,7 @@
window.Whisper = window.Whisper || {};
const { Attachment, Message } = window.Signal.Types;
const { context: migrationContext } = window.Signal.Migrations;
// TODO: Factor out private and group subclasses of Conversation
@ -626,7 +627,7 @@
received_at: now,
expireTimer: this.get('expireTimer'),
recipients: this.getRecipients(),
});
}, migrationContext);
const message = this.messageCollection.add(messageWithSchema);
if (this.isPrivate()) {
message.set({ destination: this.id });