Close/cancel draft "reply to" on Escape (#4387)
This commit is contained in:
parent
c907fd36ba
commit
1503053496
3 changed files with 14 additions and 3 deletions
|
@ -458,6 +458,8 @@
|
|||
this.onEditorStateChange(msg, caretLocation),
|
||||
onTextTooLong: () => this.showToast(Whisper.MessageBodyTooLongToast),
|
||||
onChooseAttachment: this.onChooseAttachment.bind(this),
|
||||
getQuotedMessage: () => this.model.get('quotedMessageId'),
|
||||
clearQuotedMessage: () => this.setQuoteMessage(null),
|
||||
micCellEl,
|
||||
attachmentListEl,
|
||||
};
|
||||
|
@ -2582,8 +2584,7 @@
|
|||
this.quotedMessage = message;
|
||||
|
||||
if (message) {
|
||||
const quote = await this.model.makeQuote(this.quotedMessage);
|
||||
this.quote = quote;
|
||||
this.quote = await this.model.makeQuote(this.quotedMessage);
|
||||
|
||||
this.focusMessageFieldAndClearDisabled();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue