1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00
This commit is contained in:
Andrei Zavatski 2020-02-10 16:08:58 +03:00
parent 8239f21cad
commit d20a860879

View File

@ -74,7 +74,7 @@ namespace osu.Game.Overlays.Comments
{
c.ParentComment = comment;
});
drawableComment.OnLoadComplete += loaded => ((DrawableComment)loaded).AddReplies(children.Select(c => createDrawableComment(c)));
drawableComment.OnLoadComplete += loaded => ((DrawableComment)loaded).AddReplies(children.Select(createDrawableComment));
}
if (comment.IsTopLevel)
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Comments
uniqueComments.ForEach(c => c.ParentComment = drawableComment.Comment);
drawableComment.AddReplies(uniqueComments.Select(comment => createDrawableComment(comment)));
drawableComment.AddReplies(uniqueComments.Select(createDrawableComment));
}
private DrawableComment createDrawableComment(Comment comment) => new DrawableComment(comment)