1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +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;
value.ForEach(v =>
{
Comments.ForEach(c =>
{
if (v == c.Id)
c.IsVoted = true;
});
});
Comments.ForEach(c => c.IsVoted = value.Contains(c.Id));
}
}