diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-06-14 21:26:38 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-06-14 21:26:38 +0200 |
commit | cb74fe6ede6ac2e9c19882003b2b1e7824d1c024 (patch) | |
tree | 4c6ae9f836b06e8775507b2a8d19686b2677f035 | |
parent | Generate event links only using room ids (diff) | |
download | nheko-cb74fe6ede6ac2e9c19882003b2b1e7824d1c024.tar.xz |
Prefill status message dialog with current status
-rw-r--r-- | resources/qml/RoomList.qml | 2 | ||||
-rw-r--r-- | resources/qml/dialogs/InputDialog.qml | 2 |
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 |