mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fix admin ranks in participants edit.
This commit is contained in:
parent
9e5117d336
commit
ebd9587821
1 changed files with 2 additions and 2 deletions
|
@ -662,7 +662,7 @@ UserData *ParticipantsAdditionalData::applyCreator(
|
|||
} else {
|
||||
_adminCanEdit.erase(user);
|
||||
}
|
||||
if (data.rank().isEmpty()) {
|
||||
if (!data.rank().isEmpty()) {
|
||||
_adminRanks[user] = data.rank();
|
||||
} else {
|
||||
_adminRanks.remove(user);
|
||||
|
@ -693,7 +693,7 @@ UserData *ParticipantsAdditionalData::applyAdmin(
|
|||
} else {
|
||||
_adminCanEdit.erase(user);
|
||||
}
|
||||
if (data.rank().isEmpty()) {
|
||||
if (!data.rank().isEmpty()) {
|
||||
_adminRanks[user] = data.rank();
|
||||
} else {
|
||||
_adminRanks.remove(user);
|
||||
|
|
Loading…
Add table
Reference in a new issue