mirror of https://github.com/procxx/kepka.git
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) {
|
if (_history) {
|
||||||
_history->draft = _field.getLastText();
|
_history->draft = _field.getLastText();
|
||||||
|
if (_migrated) _migrated->draft = QString(); // use migrated draft only once
|
||||||
_history->draftCursor.fillFrom(_field);
|
_history->draftCursor.fillFrom(_field);
|
||||||
_history->draftToId = _replyToId;
|
_history->draftToId = _replyToId;
|
||||||
_history->draftPreviewCancelled = _previewCancelled;
|
_history->draftPreviewCancelled = _previewCancelled;
|
||||||
|
@ -3325,6 +3326,7 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
||||||
_history->draftCursor = _migrated->draftCursor;
|
_history->draftCursor = _migrated->draftCursor;
|
||||||
_history->draftPreviewCancelled = _migrated->draftPreviewCancelled;
|
_history->draftPreviewCancelled = _migrated->draftPreviewCancelled;
|
||||||
_history->draftToId = 0;
|
_history->draftToId = 0;
|
||||||
|
_migrated->draft = QString(); // use migrated draft only once
|
||||||
applyDraft(false);
|
applyDraft(false);
|
||||||
_replyToId = 0;
|
_replyToId = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue