summary refs log tree commit diff
path: root/resources/qml/dialogs/UserProfile.qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/dialogs/UserProfile.qml')
-rw-r--r--resources/qml/dialogs/UserProfile.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml
index 684ada8f..e20c7bc5 100644
--- a/resources/qml/dialogs/UserProfile.qml
+++ b/resources/qml/dialogs/UserProfile.qml
@@ -177,6 +177,21 @@ ApplicationWindow {
                 Layout.alignment: Qt.AlignHCenter
             }
 
+            MatrixText {
+                id: statusMsg
+                text: qsTr("Status: %1").arg(Presence.userStatus(profile.userid))
+                visible: Presence.userStatus(profile.userid) != ""
+                Layout.alignment: Qt.AlignHCenter
+                font.italic: true
+                font.pointSize: Math.floor(fontMetrics.font.pointSize * 0.9)
+                Connections {
+                    target: Presence
+                    function onPresenceChanged(id) {
+                        if (id == profile.userid) statusMsg.text = Presence.userStatus(profile.userid);
+                    }
+                }
+            }
+
             RowLayout {
                 visible: !profile.isGlobalUserProfile
                 Layout.alignment: Qt.AlignHCenter