diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-18 00:17:24 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-18 00:17:24 +0200 |
commit | 07228d336ab74b90c39d2cf8c9e152f93bb38f7f (patch) | |
tree | 86894b4e6e6130f54766522d70af3c5185fa1095 /src/ui/RoomSettings.h | |
parent | Skip migration if sender_key is not a string or present (diff) | |
download | nheko-07228d336ab74b90c39d2cf8c9e152f93bb38f7f.tar.xz |
Support the knock_restricted rule
Diffstat (limited to '')
-rw-r--r-- | src/ui/RoomSettings.h | 2 |
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(); |