Update user avatars in place
This commit is contained in:
parent
86aa409c1f
commit
992332adf7
@ -42,10 +42,8 @@ AvatarProvider::updateAvatar(const QString &uid, const QImage &img)
|
||||
toBeResolved_.erase(uid);
|
||||
}
|
||||
|
||||
auto avatarData = avatars_[uid];
|
||||
avatarData.img = img;
|
||||
|
||||
avatars_.emplace(uid, avatarData);
|
||||
auto avatarData = &avatars_[uid];
|
||||
avatarData->img = img;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user