From ebc0abca7808e7c345e2ed623d6d023467359960 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Tue, 20 Apr 2021 13:14:30 +0300 Subject: [PATCH] Fix notification switch in own profle --- Telegram/SourceFiles/info/info_wrap_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/info_wrap_widget.cpp b/Telegram/SourceFiles/info/info_wrap_widget.cpp index bac4e548e..336d54cd6 100644 --- a/Telegram/SourceFiles/info/info_wrap_widget.cpp +++ b/Telegram/SourceFiles/info/info_wrap_widget.cpp @@ -506,7 +506,7 @@ void WrapWidget::addProfileNotificationsButton() { Expects(_topBar != nullptr); const auto peer = key().peer(); - if (!peer) { + if (!peer || peer->isSelf()) { return; } auto notifications = _topBar->addButton(