Only query for the owner user metadata in the case it is actually required

This commit is contained in:
Dean Herbert 2021-12-01 22:43:32 +09:00
parent a0ff86f5e8
commit d262baefad

View File

@ -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);