Fix applying a draft with a reply in it.

Fixes #3407
This commit is contained in:
John Preston 2017-07-05 16:20:34 +03:00
parent 7d342b9c6d
commit 4d3e7ac30c
1 changed files with 2 additions and 4 deletions

View File

@ -1799,10 +1799,8 @@ void HistoryWidget::applyDraft(bool parseLinks, Ui::FlatTextarea::UndoHistoryAct
_editMsgId = 0;
_replyToId = readyToForward() ? 0 : _history->localDraft()->msgId;
}
if (!canWriteMessage()) {
updateControlsVisibility();
updateControlsGeometry();
}
updateControlsVisibility();
updateControlsGeometry();
if (parseLinks) {
onPreviewParse();