From ec53b5b42a28f798ffe00bcf67e13f52580f9efc Mon Sep 17 00:00:00 2001 From: Eric Andrews Date: Sat, 30 Sep 2023 11:57:54 -0400 Subject: [PATCH] added updated time to compact comments --- Mlem/Views/Shared/Comments/Components/CommentBodyView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mlem/Views/Shared/Comments/Components/CommentBodyView.swift b/Mlem/Views/Shared/Comments/Components/CommentBodyView.swift index cf9fd203a..9865b1532 100644 --- a/Mlem/Views/Shared/Comments/Components/CommentBodyView.swift +++ b/Mlem/Views/Shared/Comments/Components/CommentBodyView.swift @@ -108,7 +108,11 @@ struct CommentBodyView: View { func compactScoreDisplay() -> some View { Group { // time - PublishedTimestampView(date: commentView.comment.published) + if let updated = commentView.comment.updated { + UpdatedTimestampView(date: updated, spacing: AppConstants.iconToTextSpacing) + } else { + PublishedTimestampView(date: commentView.comment.published) + } // votes if showCommentDownvotesSeparately {