aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)); });
}