diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2021-10-07 17:59:03 +0000 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-10-07 20:01:55 +0200 |
commit | 569606f35b7b0ebbeba5eb5625a8f47fde4eb980 (patch) | |
tree | 01e884500f3f65096766885be1ef6f2c8b50acd3 /src/ui | |
parent | Remove duplicated verification status calculation (diff) | |
download | nheko-569606f35b7b0ebbeba5eb5625a8f47fde4eb980.tar.xz |
Simplify device list refresh logic
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/UserProfile.cpp | 4 |
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_); } |