summary refs log tree commit diff
path: root/src/ui/UserProfile.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-02-03 03:17:28 +0100
committerGitHub <noreply@github.com>2021-02-03 03:17:28 +0100
commita7150b566631df39d154a968d04b19af324b3815 (patch)
treefb8ecf83dadec49096bb06c01684a53ea980d17e /src/ui/UserProfile.cpp
parentfixed global avatar updation in the dialog (diff)
parentCleanup privacy screen, no more grabImage (diff)
downloadnheko-a7150b566631df39d154a968d04b19af324b3815.tar.xz
Merge branch 'master' into avatar_username_feature
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r--src/ui/UserProfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index 715c1c42..274ed927 100644
--- a/src/ui/UserProfile.cpp
+++ b/src/ui/UserProfile.cpp
@@ -244,7 +244,7 @@ UserProfile::changeUsername(QString username)
         if (isGlobalUserProfile()) {
                 // change global
                 http::client()->set_displayname(
-                  username.toStdString(), [this](mtx::http::RequestErr err) {
+                  username.toStdString(), [](mtx::http::RequestErr err) {
                           if (err) {
                                   nhlog::net()->warn("could not change username");
                                   return;
@@ -408,4 +408,4 @@ UserProfile::getGlobalProfileData()
                   globalAvatarUrl = QString::fromStdString(res.avatar_url);
                   emit avatarUrlChanged();
           });
-}
\ No newline at end of file
+}