summary refs log tree commit diff
path: root/src/ui/UserProfile.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-07 23:03:14 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-08 00:20:12 +0200
commit7b6fab33731e369a860ab217709190e9457d6d76 (patch)
tree75d0cfb1e4b35e1f2dc7b293dfb8f5732f1c11a8 /src/ui/UserProfile.h
parentFix in room verification (diff)
downloadnheko-7b6fab33731e369a860ab217709190e9457d6d76.tar.xz
Calculate verification status from cross-signing sigs and update dynamically
Diffstat (limited to 'src/ui/UserProfile.h')
-rw-r--r--src/ui/UserProfile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/UserProfile.h b/src/ui/UserProfile.h

index 18933727..77b22323 100644 --- a/src/ui/UserProfile.h +++ b/src/ui/UserProfile.h
@@ -74,6 +74,8 @@ public slots: private: std::vector<DeviceInfo> deviceList_; + + friend class UserProfile; }; class UserProfile : public QObject @@ -83,7 +85,7 @@ class UserProfile : public QObject Q_PROPERTY(QString userid READ userid CONSTANT) Q_PROPERTY(QString avatarUrl READ avatarUrl CONSTANT) Q_PROPERTY(DeviceInfoModel *deviceList READ deviceList CONSTANT) - Q_PROPERTY(bool isUserVerified READ getUserStatus CONSTANT) + Q_PROPERTY(bool isUserVerified READ getUserStatus NOTIFY userStatusChanged) public: UserProfile(QString roomid, QString userid, @@ -105,9 +107,11 @@ public: Q_INVOKABLE void kickUser(); Q_INVOKABLE void startChat(); +signals: + void userStatusChanged(); + private: QString roomid_, userid_; - std::optional<std::string> cross_verified; DeviceInfoModel deviceList_; bool isUserVerified = false; TimelineViewManager *manager;