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:
parent
d1ead83c6c
commit
d20c48d151
@ -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;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user