chore: Follow up power level UX

This commit is contained in:
Christian Kußowski 2026-02-25 14:02:30 +01:00
commit fd70c292e9
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 9 additions and 4 deletions

View file

@ -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