This commit is contained in:
Andrei Zavatski 2019-10-15 01:10:23 +03:00
parent 42a06a54ff
commit ad32d66365
2 changed files with 2 additions and 2 deletions

View File

@ -78,6 +78,6 @@ public string GetMessage()
return WebUtility.HtmlDecode(Regex.Replace(MessageHtml, @"<(.|\n)*?>", string.Empty));
}
public int GetDeletedChildrenCount => ChildComments.Select(c => c.IsDeleted).Where(c => c).Count();
public int GetDeletedChildrenCount => ChildComments.Select(c => c.IsDeleted).Count(c => c);
}
}

View File

@ -163,7 +163,7 @@ private void onSuccess(APICommentsController response, bool initial)
{
content.Add(loaded);
int deletedComments = response.Comments.Select(c => c.IsDeleted && c.IsTopLevel).Where(c => c).Count();
int deletedComments = response.Comments.Select(c => c.IsDeleted && c.IsTopLevel).Count(c => c);
deletedChildrenPlaceholder.DeletedCount.Value = initial ? deletedComments : deletedChildrenPlaceholder.DeletedCount.Value + deletedComments;