summary refs log tree commit diff
path: root/src/AvatarProvider.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 18:43:56 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 18:43:56 +0300
commit4c4ea557b344b035507652cfbc3b616904f958e9 (patch)
treee8e610bfdaebb0ffb3a472f89b699bc3f65852b8 /src/AvatarProvider.cc
parentRemove the pseudo deb & rpm packages from releases (diff)
downloadnheko-4c4ea557b344b035507652cfbc3b616904f958e9.tar.xz
Replace shared pointers of MatrixClient with a single instance
Diffstat (limited to 'src/AvatarProvider.cc')
-rw-r--r--src/AvatarProvider.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/AvatarProvider.cc b/src/AvatarProvider.cc

index c7745239..51ff27ac 100644 --- a/src/AvatarProvider.cc +++ b/src/AvatarProvider.cc
@@ -22,7 +22,6 @@ #include "Cache.h" #include "MatrixClient.h" -QSharedPointer<MatrixClient> AvatarProvider::client_; QSharedPointer<Cache> AvatarProvider::cache_; void @@ -46,7 +45,7 @@ AvatarProvider::resolve(const QString &room_id, return; } - auto proxy = client_->fetchUserAvatar(avatarUrl); + auto proxy = http::client()->fetchUserAvatar(avatarUrl); if (proxy.isNull()) return;