mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 03:50:43 +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:
parent
232d3dcb54
commit
734b426518
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user