mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Add support for admins without additional rights.
This commit is contained in:
@@ -329,7 +329,7 @@ void EditAdminBox::prepare() {
|
||||
if (!_saveCallback) {
|
||||
return;
|
||||
}
|
||||
const auto newFlags = value()
|
||||
const auto newFlags = (value() | ChatAdminRight::f_other)
|
||||
& ((!channel || channel->amCreator())
|
||||
? ~Flags(0)
|
||||
: channel->adminRights());
|
||||
|
Reference in New Issue
Block a user