Allow to return to the original chat on forward.

This commit is contained in:
John Preston 2019-05-27 12:25:28 +02:00
parent 2f1b029ec9
commit db66e93258
1 changed files with 4 additions and 1 deletions

View File

@ -593,7 +593,10 @@ bool MainWidget::setForwardDraft(PeerId peerId, MessageIdsList &&items) {
}
peer->owner().history(peer)->setForwardDraft(std::move(items));
Ui::showPeerHistory(peer, ShowAtUnreadMsgId);
_controller->showPeerHistory(
peer,
SectionShow::Way::Forward,
ShowAtUnreadMsgId);
_history->cancelReply();
return true;
}