aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-07-29 08:57:44 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-07-29 08:57:44 +0200
commit5557b68a01f1b0f2e8e169aacdbe74f89b14cde3 (patch)
tree982455ffc04039a56ec40b501351e79c112ee766 /lib/user.cpp
parent7cba88bad28e1d3aa7a37b345b40325918030505 (diff)
downloadlibquotient-5557b68a01f1b0f2e8e169aacdbe74f89b14cde3.tar.gz
libquotient-5557b68a01f1b0f2e8e169aacdbe74f89b14cde3.zip
Fix FTBFS
Diffstat (limited to 'lib/user.cpp')
-rw-r--r--lib/user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.cpp b/lib/user.cpp
index 522ae197..03474b10 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -295,7 +295,7 @@ bool User::isIgnored() const { return connection()->isIgnored(this); }
void User::Private::setAvatarOnServer(QString contentUri, User* q)
{
- auto* j = connection->callApi<SetAvatarUrlJob>(userId, contentUri);
+ auto* j = q->connection()->callApi<SetAvatarUrlJob>(userId, contentUri);
connect(j, &BaseJob::success, q,
[=] { q->updateAvatarUrl(contentUri, avatarUrlForRoom(nullptr)); });
}