From db66e93258073be840ba758ec5e3a6ee2276ef52 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 27 May 2019 12:25:28 +0200 Subject: [PATCH] Allow to return to the original chat on forward. --- Telegram/SourceFiles/mainwidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 13e9cfcb61..20de1df4cb 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -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; }