1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +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));
}
}