Only show actions, when you have permissions to do them
This commit is contained in:
parent
1321d9bcca
commit
ab0baf5d9e
15 changed files with 272 additions and 22 deletions
|
|
@ -95,6 +95,7 @@ class UserProfile : public QObject
|
|||
Q_PROPERTY(
|
||||
bool userVerificationEnabled READ userVerificationEnabled NOTIFY userStatusChanged)
|
||||
Q_PROPERTY(bool isSelf READ isSelf CONSTANT)
|
||||
Q_PROPERTY(TimelineModel *room READ room CONSTANT)
|
||||
public:
|
||||
UserProfile(QString roomid,
|
||||
QString userid,
|
||||
|
|
@ -111,6 +112,7 @@ public:
|
|||
bool userVerificationEnabled() const;
|
||||
bool isSelf() const;
|
||||
bool isLoading() const;
|
||||
TimelineModel *room() const { return model; }
|
||||
|
||||
Q_INVOKABLE void verify(QString device = "");
|
||||
Q_INVOKABLE void unverify(QString device = "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue