mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Only query for the owner user metadata in the case it is actually required
This commit is contained in:
parent
a0ff86f5e8
commit
d262baefad
@ -151,8 +151,11 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
{
|
||||
try
|
||||
{
|
||||
var foundUser = await userLookupCache.GetUserAsync(Item.OwnerID).ConfigureAwait(false);
|
||||
Schedule(() => ownerAvatar.User = foundUser);
|
||||
if (showItemOwner)
|
||||
{
|
||||
var foundUser = await userLookupCache.GetUserAsync(Item.OwnerID).ConfigureAwait(false);
|
||||
Schedule(() => ownerAvatar.User = foundUser);
|
||||
}
|
||||
|
||||
var foundBeatmap = await beatmapLookupCache.GetBeatmapAsync(Item.BeatmapID).ConfigureAwait(false);
|
||||
Schedule(() => Item.Beatmap.Value = foundBeatmap);
|
||||
|
Loading…
Reference in New Issue
Block a user