1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index 338f3658..5c63deb2 100644
--- a/src/ui/UserProfile.cpp
+++ b/src/ui/UserProfile.cpp
@@ -592,12 +592,18 @@ UserProfile::getGlobalProfileData()
emit avatarUrlChanged();
});
+ connect(profProx.get(),
+ &UserProfileFetchProxy::failedToFetchProfile,
+ this,
+ &UserProfile::failedToFetchProfile);
+
http::client()->get_profile(userid_.toStdString(),
[prox = std::move(profProx), user = userid_.toStdString()](
const mtx::responses::Profile &res, mtx::http::RequestErr err) {
if (err) {
nhlog::net()->warn("failed to retrieve profile info for {}",
user);
+ emit prox->failedToFetchProfile();
return;
}
|