mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:52:57 +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;
|
||||
|
||||
value.ForEach(v =>
|
||||
{
|
||||
Comments.ForEach(c =>
|
||||
{
|
||||
if (v == c.Id)
|
||||
c.IsVoted = true;
|
||||
});
|
||||
});
|
||||
Comments.ForEach(c => c.IsVoted = value.Contains(c.Id));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user