Fix not being able to view the DM's profile
This button was broken for a while, so now that's fixed.
This commit is contained in:
@@ -6,8 +6,9 @@ import QtQuick
|
|||||||
import QtQuick.Controls as QQC2
|
import QtQuick.Controls as QQC2
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import org.kde.kirigami as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
import org.kde.kirigamiaddons.labs.components as KirigamiComponents
|
import org.kde.kirigamiaddons.components as KirigamiComponents
|
||||||
|
|
||||||
|
import org.kde.neochat
|
||||||
import org.kde.neochat.libneochat
|
import org.kde.neochat.libneochat
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@@ -29,34 +30,30 @@ ColumnLayout {
|
|||||||
Layout.preferredHeight: Kirigami.Units.largeSpacing * 2
|
Layout.preferredHeight: Kirigami.Units.largeSpacing * 2
|
||||||
}
|
}
|
||||||
|
|
||||||
QQC2.AbstractButton {
|
KirigamiComponents.AvatarButton {
|
||||||
|
name: root.room ? root.room.displayName : ""
|
||||||
|
source: root.room ? root.room.avatarMediaUrl : ""
|
||||||
|
|
||||||
Layout.preferredWidth: Math.round(Kirigami.Units.gridUnit * 3.5)
|
Layout.preferredWidth: Math.round(Kirigami.Units.gridUnit * 3.5)
|
||||||
Layout.preferredHeight: Math.round(Kirigami.Units.gridUnit * 3.5)
|
Layout.preferredHeight: Math.round(Kirigami.Units.gridUnit * 3.5)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
onClicked: {
|
onClicked: RoomManager.resolveResource(root.room.directChatRemoteMember.id)
|
||||||
root.resolveResource(root.room.directChatRemoteMember.uri, "")
|
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: KirigamiComponents.Avatar {
|
Rectangle {
|
||||||
name: root.room ? root.room.displayName : ""
|
visible: root.room.usesEncryption
|
||||||
source: root.room ? root.room.avatarMediaUrl : ""
|
color: Kirigami.Theme.backgroundColor
|
||||||
|
|
||||||
Rectangle {
|
width: Kirigami.Units.gridUnit
|
||||||
visible: root.room.usesEncryption
|
height: Kirigami.Units.gridUnit
|
||||||
color: Kirigami.Theme.backgroundColor
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
width: Kirigami.Units.gridUnit
|
radius: Math.round(width / 2)
|
||||||
height: Kirigami.Units.gridUnit
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
radius: Math.round(width / 2)
|
Kirigami.Icon {
|
||||||
|
source: "channel-secure-symbolic"
|
||||||
Kirigami.Icon {
|
anchors.fill: parent
|
||||||
source: "channel-secure-symbolic"
|
|
||||||
anchors.fill: parent
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user