mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
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:
@@ -32,6 +32,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
|||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
#include "core/click_handler_types.h"
|
#include "core/click_handler_types.h"
|
||||||
#include "auth_session.h"
|
#include "auth_session.h"
|
||||||
|
#include "mainwidget.h"
|
||||||
|
|
||||||
namespace Window {
|
namespace Window {
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ void MainMenu::checkSelf() {
|
|||||||
if (auto self = App::self()) {
|
if (auto self = App::self()) {
|
||||||
auto showSelfChat = [] {
|
auto showSelfChat = [] {
|
||||||
if (auto self = App::self()) {
|
if (auto self = App::self()) {
|
||||||
Ui::showPeerHistory(App::history(self), ShowAtUnreadMsgId);
|
App::main()->choosePeer(self->id, ShowAtUnreadMsgId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
_userpicButton.create(this, self, st::mainMenuUserpicSize);
|
_userpicButton.create(this, self, st::mainMenuUserpicSize);
|
||||||
|
Reference in New Issue
Block a user