mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix channel admin rights checking.
This commit is contained in:
parent
da386f2c2e
commit
bb7ab625c1
1 changed files with 2 additions and 2 deletions
|
@ -1074,9 +1074,9 @@ bool ChannelData::canEditLastAdmin(not_null<UserData*> user) const {
|
|||
if (mgInfo) {
|
||||
auto i = mgInfo->lastAdmins.constFind(user);
|
||||
if (i != mgInfo->lastAdmins.cend()) {
|
||||
return !i->canEdit;
|
||||
return i->canEdit;
|
||||
}
|
||||
return (user == mgInfo->creator);
|
||||
return (user != mgInfo->creator);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue