Fix canceling forward when clicking on _userpicButton or _cloudButton (#3248)

- Fixes #3192

Signed-off-by: srazi <s.r.alavizadeh@gmail.com> (github: srazi)
This commit is contained in:
srazi 2017-04-12 00:33:34 +04:30 committed by John Preston
parent 232d3dcb54
commit 734b426518
1 changed files with 2 additions and 1 deletions

View File

@ -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);