summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-06-14 21:26:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2024-06-14 21:26:38 +0200
commitcb74fe6ede6ac2e9c19882003b2b1e7824d1c024 (patch)
tree4c6ae9f836b06e8775507b2a8d19686b2677f035 /resources
parentGenerate event links only using room ids (diff)
downloadnheko-cb74fe6ede6ac2e9c19882003b2b1e7824d1c024.tar.xz
Prefill status message dialog with current status
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/RoomList.qml2
-rw-r--r--resources/qml/dialogs/InputDialog.qml2
2 files changed, 4 insertions, 0 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index 350b3846..c82bc43a 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -249,6 +249,8 @@ Page {
                 prompt: qsTr("Enter your status message:")
                 title: qsTr("Status Message")
 
+                text: userInfoGrid.profile ? Presence.userStatus(userInfoGrid.profile.userid) : ""
+
                 onAccepted: function (text) {
                     Nheko.setStatusMessage(text);
                 }
diff --git a/resources/qml/dialogs/InputDialog.qml b/resources/qml/dialogs/InputDialog.qml
index bf3cbc9a..c963febb 100644
--- a/resources/qml/dialogs/InputDialog.qml
+++ b/resources/qml/dialogs/InputDialog.qml
@@ -13,6 +13,8 @@ ApplicationWindow {
 
     property alias prompt: promptLabel.text
     property alias echoMode: statusInput.echoMode
+    property alias text: statusInput.text
+
     signal accepted(text: string)
 
     modality: Qt.NonModal