mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Made less strict condition to show button of removed users in chat edit.
This commit is contained in:
parent
3257fd364a
commit
3d8396e586
1 changed files with 3 additions and 1 deletions
|
@ -1244,7 +1244,9 @@ void Controller::fillManageSection() {
|
||||||
? channel->canViewMembers()
|
? channel->canViewMembers()
|
||||||
: chat->amIn();
|
: chat->amIn();
|
||||||
const auto canViewKicked = isChannel
|
const auto canViewKicked = isChannel
|
||||||
&& (channel->isBroadcast() || channel->isGigagroup());
|
&& (channel->isMegagroup()
|
||||||
|
? (channel->isBroadcast() || channel->isGigagroup())
|
||||||
|
: true);
|
||||||
const auto hasRecentActions = isChannel
|
const auto hasRecentActions = isChannel
|
||||||
&& (channel->hasAdminRights() || channel->amCreator());
|
&& (channel->hasAdminRights() || channel->amCreator());
|
||||||
const auto hasStarRef = Info::BotStarRef::Join::Allowed(_peer)
|
const auto hasStarRef = Info::BotStarRef::Join::Allowed(_peer)
|
||||||
|
|
Loading…
Add table
Reference in a new issue