From d104608fbf0926aa1f8d8b079826f2860ce27749 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Thu, 9 Jul 2020 14:28:29 +0300 Subject: [PATCH] Hide account name if it's the current one --- Telegram/SourceFiles/window/notifications_manager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/window/notifications_manager.cpp b/Telegram/SourceFiles/window/notifications_manager.cpp index c950f269c..4596d4ca7 100644 --- a/Telegram/SourceFiles/window/notifications_manager.cpp +++ b/Telegram/SourceFiles/window/notifications_manager.cpp @@ -583,6 +583,12 @@ QString Manager::addTargetAccountName( const QString &title, not_null session) { const auto add = [&] { + if (const auto activeSession = Core::App().domain().active().maybeSession()) { + if (session == activeSession) { + return false; + } + } + for (const auto &[index, account] : Core::App().domain().accounts()) { if (const auto other = account->maybeSession()) { if (other != session) {