1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-13 19:54:15 +08:00

Fall back to using APIUser.Statistics for rank in UserPanel (#37717)

Fixes friend list not showing global rank of the users.
I think #37709 can be closed without any further client-side changes
after `osu-web` is made to return global rank on user searches.
This commit is contained in:
Zihad
2026-05-12 10:33:32 +06:00
committed by GitHub
Unverified
parent e8d8ef0be1
commit a5a0e84a4d
+1 -1
View File
@@ -141,7 +141,7 @@ namespace osu.Game.Users
// We can't colour the properly because we don't have the required percentile data.
Colour = Colours.BlueLighter,
Text = User.Rank?.Rank?.ToLocalisableString("\\##,##0") ?? string.Empty,
Text = (User.Rank?.Rank ?? User.Statistics.GlobalRank)?.ToLocalisableString("\\##,##0") ?? string.Empty,
};
protected UpdateableAvatar CreateAvatar() => new UpdateableAvatar(User, false);