Close/cancel draft "reply to" on Escape (#4387)

This commit is contained in:
Jan Janik 2020-07-01 03:59:38 +02:00 committed by GitHub
parent c907fd36ba
commit 1503053496
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View file

@ -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();
}