Prefill status message dialog with current status

pull/1754/head
Nicolas Werner 5 months ago
parent 1d252ae66f
commit cb74fe6ede
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      resources/qml/RoomList.qml
  2. 2
      resources/qml/dialogs/InputDialog.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);
}

@ -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

Loading…
Cancel
Save