From 58cd2b2a2e8bbf5e8346a5cbc1fb216e6764ee29 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 31 Dec 2025 11:58:23 +0300 Subject: [PATCH] Removed report from profile top bar actions for admins. --- Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp b/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp index 08cdb06529..d6db9274dd 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp @@ -942,8 +942,10 @@ void TopBar::setupActions(not_null controller) { return; } if (!topic - && ((chat && !chat->amCreator()) - || (channel && !channel->amCreator()))) { + && ((chat && !chat->amCreator() && !chat->hasAdminRights()) + || (channel + && !channel->amCreator() + && !channel->hasAdminRights()))) { const auto show = controller->uiShow(); const auto reportButton = Ui::CreateChild( this,