Add power level to the user details dialog
The only way to check a user's power level is to haul yourself over to the member list, which is cumbersome but also hard to parse - especially if a room has lots of members. This adds the user's power level to the existing details dialog. For example, this makes it easier to identify someone as a moderator if they sent a message in the room.
This commit is contained in:
@@ -116,6 +116,16 @@ Kirigami.Dialog {
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Chip {
|
||||
visible: root.room
|
||||
text: root.room ? QmlUtils.nameForLevel(root.room.memberEffectivePowerLevel(root.user.id)) : ""
|
||||
closable: false
|
||||
checkable: false
|
||||
|
||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||
Layout.bottomMargin: Kirigami.Units.largeSpacing
|
||||
}
|
||||
|
||||
Kirigami.Separator {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user