From 734b426518b1b7fcdee099b8f83c5bc824e86899 Mon Sep 17 00:00:00 2001 From: srazi Date: Wed, 12 Apr 2017 00:33:34 +0430 Subject: [PATCH] Fix canceling forward when clicking on _userpicButton or _cloudButton (#3248) - Fixes #3192 Signed-off-by: srazi (github: srazi) --- Telegram/SourceFiles/window/window_main_menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/window_main_menu.cpp b/Telegram/SourceFiles/window/window_main_menu.cpp index dd34545b2f..3d884f7446 100644 --- a/Telegram/SourceFiles/window/window_main_menu.cpp +++ b/Telegram/SourceFiles/window/window_main_menu.cpp @@ -32,6 +32,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "lang.h" #include "core/click_handler_types.h" #include "auth_session.h" +#include "mainwidget.h" namespace Window { @@ -81,7 +82,7 @@ void MainMenu::checkSelf() { if (auto self = App::self()) { auto showSelfChat = [] { if (auto self = App::self()) { - Ui::showPeerHistory(App::history(self), ShowAtUnreadMsgId); + App::main()->choosePeer(self->id, ShowAtUnreadMsgId); } }; _userpicButton.create(this, self, st::mainMenuUserpicSize);