mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Always show that bot-admin reads all messages.
A bot with any admin rights has access to messages.
This commit is contained in:
@@ -274,7 +274,8 @@ void MembersBox::Inner::actionPressed(Member &row) {
|
||||
})), KeepOtherLayers);
|
||||
} else {
|
||||
auto currentRights = _rows[_kickSelected].adminRights;
|
||||
_kickBox = Ui::show(Box<EditAdminBox>(_channel, user, currentRights, base::lambda_guarded(this, [this, user](const MTPChannelAdminRights &rights) {
|
||||
auto hasAdminRights = true;
|
||||
_kickBox = Ui::show(Box<EditAdminBox>(_channel, user, hasAdminRights, currentRights, base::lambda_guarded(this, [this, user](const MTPChannelAdminRights &rights) {
|
||||
if (_kickBox) _kickBox->closeBox();
|
||||
MTP::send(MTPchannels_EditAdmin(_channel->inputChannel, user->inputUser, rights), ::rpcDone(base::lambda_guarded(this, [this, user, rights](const MTPUpdates &result, mtpRequestId req) {
|
||||
if (App::main()) App::main()->sentUpdatesReceived(result);
|
||||
|
||||
Reference in New Issue
Block a user