mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Removed report from profile top bar actions for admins.
This commit is contained in:
@@ -942,8 +942,10 @@ void TopBar::setupActions(not_null<Window::SessionController*> 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<TopBarActionButton>(
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user