chore: Follow up power level UX
This commit is contained in:
parent
47934a3378
commit
fd70c292e9
3 changed files with 9 additions and 4 deletions
|
|
@ -24,7 +24,9 @@ class ParticipantListItem extends StatelessWidget {
|
|||
Membership.leave => L10n.of(context).leftTheChat,
|
||||
};
|
||||
|
||||
final permissionBatch = user.powerLevel >= 100
|
||||
final permissionBatch = user.room.creatorUserIds.contains(user.id)
|
||||
? L10n.of(context).owner
|
||||
: user.powerLevel >= 100
|
||||
? L10n.of(context).admin
|
||||
: user.powerLevel >= 50
|
||||
? L10n.of(context).moderator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue