summary refs log tree commit diff
path: root/src/ui/RoomSettings.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-06-18 00:17:24 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-06-18 00:17:24 +0200
commit07228d336ab74b90c39d2cf8c9e152f93bb38f7f (patch)
tree86894b4e6e6130f54766522d70af3c5185fa1095 /src/ui/RoomSettings.h
parentSkip migration if sender_key is not a string or present (diff)
downloadnheko-07228d336ab74b90c39d2cf8c9e152f93bb38f7f.tar.xz
Support the knock_restricted rule
Diffstat (limited to '')
-rw-r--r--src/ui/RoomSettings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/RoomSettings.h b/src/ui/RoomSettings.h
index 9912cfd6..4cb5bcf4 100644
--- a/src/ui/RoomSettings.h
+++ b/src/ui/RoomSettings.h
@@ -48,6 +48,7 @@ class RoomSettings : public QObject
     Q_PROPERTY(bool isEncryptionEnabled READ isEncryptionEnabled NOTIFY encryptionChanged)
     Q_PROPERTY(bool supportsKnocking READ supportsKnocking CONSTANT)
     Q_PROPERTY(bool supportsRestricted READ supportsRestricted CONSTANT)
+    Q_PROPERTY(bool supportsKnockRestricted READ supportsKnockRestricted CONSTANT)
 
 public:
     RoomSettings(QString roomid, QObject *parent = nullptr);
@@ -74,6 +75,7 @@ public:
     bool isEncryptionEnabled() const;
     bool supportsKnocking() const;
     bool supportsRestricted() const;
+    bool supportsKnockRestricted() const;
 
     Q_INVOKABLE void enableEncryption();
     Q_INVOKABLE void updateAvatar();