1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 06:12:58 +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; 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) if (comment.IsTopLevel)
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Comments
uniqueComments.ForEach(c => c.ParentComment = drawableComment.Comment); 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) private DrawableComment createDrawableComment(Comment comment) => new DrawableComment(comment)