diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-10-27 17:45:28 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-10-27 17:45:28 +0100 |
commit | 12fff7408ea7539d778a641bbf1746693d30ee2a (patch) | |
tree | af9ef46791e7f2e5dcd480f4c1cc91a97ee95a71 /src/ui | |
parent | Fix small scope issue (diff) | |
download | nheko-12fff7408ea7539d778a641bbf1746693d30ee2a.tar.xz |
Optimize build
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/UserProfile.cpp | 4 | ||||
-rw-r--r-- | src/ui/UserProfile.h | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index 2bb0370f..974aa5cc 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -117,7 +117,7 @@ UserProfile::fetchDeviceList(const QString &userID) { auto localUser = utils::localUser(); - ChatPage::instance()->query_keys( + cache::client()->query_keys( userID.toStdString(), [other_user_id = userID.toStdString(), this](const UserKeyCache &other_user_keys, mtx::http::RequestErr err) { @@ -129,7 +129,7 @@ UserProfile::fetchDeviceList(const QString &userID) } // Finding if the User is Verified or not based on the Signatures - ChatPage::instance()->query_keys( + cache::client()->query_keys( utils::localUser().toStdString(), [other_user_id, other_user_keys, this](const UserKeyCache &res, mtx::http::RequestErr err) { diff --git a/src/ui/UserProfile.h b/src/ui/UserProfile.h index 77b22323..62151266 100644 --- a/src/ui/UserProfile.h +++ b/src/ui/UserProfile.h @@ -5,8 +5,6 @@ #include <QString> #include <QVector> -#include "MatrixClient.h" - namespace verification { Q_NAMESPACE @@ -116,8 +114,4 @@ private: bool isUserVerified = false; TimelineViewManager *manager; TimelineModel *model; - - void callback_fn(const mtx::responses::QueryKeys &res, - mtx::http::RequestErr err, - std::string user_id); }; |