Add basic cross-signing support

(cherry picked from commit e1795076c8c41a34b91c31df35d1e344d0b14887)
This commit is contained in:
Tobias Fella
2024-05-06 21:12:54 +02:00
parent 3d433762b1
commit fd8725f649
5 changed files with 48 additions and 6 deletions

View File

@@ -59,12 +59,27 @@ ColumnLayout {
}
}
Kirigami.Heading {
RowLayout {
Layout.fillWidth: true
type: Kirigami.Heading.Type.Primary
wrapMode: QQC2.Label.Wrap
text: root.room.displayName
textFormat: Text.PlainText
horizontalAlignment: Text.AlignHCenter
Layout.alignment: Qt.AlignHCenter
Kirigami.Icon {
id: securityIcon
//TODO figure out how to make this update
source: room.connection.isUserVerified(root.room.directChatRemoteMember.id) ?
(room.connection.allSessionsSelfVerified(root.room.directChatRemoteMember.id) ? "security-high" : "security-medium")
: "security-low"
}
Kirigami.Heading {
type: Kirigami.Heading.Type.Primary
wrapMode: QQC2.Label.Wrap
text: root.room.displayName
textFormat: Text.PlainText
horizontalAlignment: Text.AlignHCenter
}
Item {
Layout.preferredWidth: visible ? securityIcon.width : 0
visible: securityIcon.visible
}
}
}