Make sent quote clickable - process after adding to conversation
This commit is contained in:
parent
73edabfb17
commit
26dd01c4fd
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue