diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2024-01-06 14:38:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-06 14:38:45 +0000 |
commit | 45cc7ab6f7e3a9fa18ac9e970ce7c50782e88c97 (patch) | |
tree | 07a00617d3bba087a9cbc0796f299b113c54ec7d /resources | |
parent | Translated using Weblate (Portuguese (Portugal)) (diff) | |
parent | deleteLater() on failure (diff) | |
download | nheko-45cc7ab6f7e3a9fa18ac9e970ce7c50782e88c97.tar.xz |
Merge pull request #1635 from NepNep21/ignore-command
Add /ignore, fixes #1634
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/TimelineView.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index f66df94f..0a255491 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -279,6 +279,16 @@ Item { } FlatButton { Layout.alignment: Qt.AlignHCenter + text: qsTr("decline invite and ignore user") + visible: roomPreview && roomPreview.isInvite + + onClicked: { + var inviter = TimelineManager.getGlobalUserProfile(roomPreview.inviterUserId) + inviter.ignored = true + } + } + FlatButton { + Layout.alignment: Qt.AlignHCenter text: qsTr("leave") visible: !!room |