Update user avatars in place

pull/1/head
Konstantinos Sideris 7 years ago
parent 86aa409c1f
commit 992332adf7
  1. 6
      src/AvatarProvider.cc

@ -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…
Cancel
Save