summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-10-07 17:59:03 +0000
committerNicolas Werner <nicolas.werner@hotmail.de>2021-10-07 20:01:55 +0200
commit569606f35b7b0ebbeba5eb5625a8f47fde4eb980 (patch)
tree01e884500f3f65096766885be1ef6f2c8b50acd3 /src/ui
parentRemove duplicated verification status calculation (diff)
downloadnheko-569606f35b7b0ebbeba5eb5625a8f47fde4eb980.tar.xz
Simplify device list refresh logic
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/UserProfile.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index 5ddf011f..31ae9f8b 100644
--- a/src/ui/UserProfile.cpp
+++ b/src/ui/UserProfile.cpp
@@ -140,9 +140,7 @@ UserProfile::isSelf() const
 void
 UserProfile::refreshDevices()
 {
-    std::vector<std::string> keysToRequest;
-    keysToRequest.push_back(this->userid_.toStdString());
-    cache::client()->markUserKeysOutOfDate(keysToRequest);
+    cache::client()->markUserKeysOutOfDate({this->userid_.toStdString()});
     fetchDeviceList(this->userid_);
 }