Make sent quote clickable - process after adding to conversation

pull/1/head
Scott Nonnenberg 8 years ago
parent 73edabfb17
commit 26dd01c4fd
No known key found for this signature in database
GPG Key ID: 5F82280C35134661

@ -112,8 +112,9 @@
}, },
addSingleMessage(message) { addSingleMessage(message) {
this.messageCollection.add(message, { merge: true }); const model = this.messageCollection.add(message, { merge: true });
this.processQuotes(this.messageCollection); this.processQuotes(this.messageCollection);
return model;
}, },
onMessageError() { onMessageError() {
@ -685,7 +686,8 @@
expireTimer: this.get('expireTimer'), expireTimer: this.get('expireTimer'),
recipients: this.getRecipients(), recipients: this.getRecipients(),
}); });
const message = this.messageCollection.add(messageWithSchema); const message = this.addSingleMessage(messageWithSchema);
if (this.isPrivate()) { if (this.isPrivate()) {
message.set({ destination: this.id }); message.set({ destination: this.id });
} }

Loading…
Cancel
Save