1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Resolve possible UserVotes issues

This commit is contained in:
Andrei Zavatski 2020-01-30 00:53:05 +03:00
parent d1ead83c6c
commit d20c48d151

View File

@ -57,14 +57,7 @@ namespace osu.Game.Online.API.Requests.Responses
{ {
userVotes = value; userVotes = value;
value.ForEach(v => Comments.ForEach(c => c.IsVoted = value.Contains(c.Id));
{
Comments.ForEach(c =>
{
if (v == c.Id)
c.IsVoted = true;
});
});
} }
} }