From 3ffdf8d28139772784c06361126d93419eeefefe Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 13 Nov 2025 15:49:40 +0300 Subject: [PATCH] Made calls check less restricted to avoid redundant repaint in profiles. --- Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp b/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp index 089df38990..a5c0218340 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp @@ -798,7 +798,7 @@ void TopBar::setupActions(not_null controller) { && user && !user->sharedMediaInfo() && !user->isInaccessible() - && user->hasCalls()) { + && user->callsStatus() != UserData::CallsStatus::Disabled) { const auto call = Ui::CreateChild( this, tr::lng_profile_action_short_call(tr::now),