summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorNepNep21 <43792621+NepNep21@users.noreply.github.com>2023-12-11 22:29:36 -0300
committerNepNep21 <43792621+NepNep21@users.noreply.github.com>2023-12-11 22:29:36 -0300
commit4695bbb34049d5e7f2c1193ef5e39f39afbd17c0 (patch)
treef1e86e09d0b5705c3234c9d7d70d4b37da1fdcab /src/ui
parentFix joined spaces having no description (diff)
downloadnheko-4695bbb34049d5e7f2c1193ef5e39f39afbd17c0.tar.xz
Add /ignore
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/UserProfile.cpp6
-rw-r--r--src/ui/UserProfile.h2
2 files changed, 8 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; } diff --git a/src/ui/UserProfile.h b/src/ui/UserProfile.h
index bc5b6a35..64dbf99c 100644 --- a/src/ui/UserProfile.h +++ b/src/ui/UserProfile.h
@@ -45,6 +45,7 @@ public: signals: void profileFetched(mtx::responses::Profile); + void failedToFetchProfile(); }; class DeviceInfo @@ -205,6 +206,7 @@ signals: void globalUsernameRetrieved(const QString &globalUser); void devicesChanged(); void ignoredChanged(); + void failedToFetchProfile(); // internal void verificationStatiChanged();