mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 00:34:49 +00:00
fixing migrated history draft usage
This commit is contained in:
parent
e312adb786
commit
a923829ba1
@ -3216,6 +3216,7 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
||||
|
||||
if (_history) {
|
||||
_history->draft = _field.getLastText();
|
||||
if (_migrated) _migrated->draft = QString(); // use migrated draft only once
|
||||
_history->draftCursor.fillFrom(_field);
|
||||
_history->draftToId = _replyToId;
|
||||
_history->draftPreviewCancelled = _previewCancelled;
|
||||
@ -3325,6 +3326,7 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
||||
_history->draftCursor = _migrated->draftCursor;
|
||||
_history->draftPreviewCancelled = _migrated->draftPreviewCancelled;
|
||||
_history->draftToId = 0;
|
||||
_migrated->draft = QString(); // use migrated draft only once
|
||||
applyDraft(false);
|
||||
_replyToId = 0;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user