Add verified devices indicator to room header
This commit is contained in:
@@ -122,6 +122,36 @@ Rectangle {
|
||||
visible: center
|
||||
}
|
||||
|
||||
HButton {
|
||||
id: encryptionStatusButton
|
||||
padded: false
|
||||
visible: Layout.preferredWidth > 0
|
||||
backgroundColor: "transparent"
|
||||
|
||||
icon.name:
|
||||
chat.roomInfo.unverified_devices ?
|
||||
"device-unset" :
|
||||
"device-verified"
|
||||
|
||||
icon.color:
|
||||
chat.roomInfo.unverified_devices ?
|
||||
theme.colors.warningText :
|
||||
theme.colors.positiveText
|
||||
|
||||
toolTip.text:
|
||||
chat.roomInfo.unverified_devices ?
|
||||
qsTr("Some members in this encrypted room have " +
|
||||
"unverified devices") :
|
||||
qsTr("All members in this encrypted room are verified")
|
||||
|
||||
onClicked: toolTip.instantShow()
|
||||
|
||||
Layout.preferredWidth: chat.roomInfo.encrypted ? avatar.width : 0
|
||||
Layout.fillHeight: true
|
||||
|
||||
Behavior on Layout.preferredWidth { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
HButton {
|
||||
id: goToRoomPaneButton
|
||||
padded: false
|
||||
|
Reference in New Issue
Block a user