From a5a0e84a4dd6c5dcbe778ab6addc8e8dea3874e0 Mon Sep 17 00:00:00 2001 From: Zihad Date: Tue, 12 May 2026 10:33:32 +0600 Subject: [PATCH] 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. --- osu.Game/Users/UserPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Users/UserPanel.cs b/osu.Game/Users/UserPanel.cs index c5988870dd..d711178798 100644 --- a/osu.Game/Users/UserPanel.cs +++ b/osu.Game/Users/UserPanel.cs @@ -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);