Disable settings when user doesnt have enough power level

This commit is contained in:
Black Hat
2020-01-01 15:11:04 +08:00
parent 5a154eab04
commit 7c60459e1f
4 changed files with 124 additions and 29 deletions

View File

@@ -75,6 +75,9 @@ class SpectralRoom : public Room {
Q_INVOKABLE bool containsUser(QString userID) const;
Q_INVOKABLE bool canSendEvent(const QString& eventType) const;
Q_INVOKABLE bool canSendState(const QString& eventType) const;
private:
QString m_cachedInput;
QSet<const Quotient::RoomEvent*> highlights;