summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2024-01-06 14:38:45 +0000
committerGitHub <noreply@github.com>2024-01-06 14:38:45 +0000
commit45cc7ab6f7e3a9fa18ac9e970ce7c50782e88c97 (patch)
tree07a00617d3bba087a9cbc0796f299b113c54ec7d /resources
parentTranslated using Weblate (Portuguese (Portugal)) (diff)
parentdeleteLater() on failure (diff)
downloadnheko-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.qml10
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