Make sent quote clickable - process after adding to conversation

This commit is contained in:
Scott Nonnenberg 2018-04-19 11:19:33 -07:00
parent 73edabfb17
commit 26dd01c4fd
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

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