Skip to content

Commit

Permalink
added updated time to compact comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews committed Sep 30, 2023
1 parent d774df7 commit ec53b5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Mlem/Views/Shared/Comments/Components/CommentBodyView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ec53b5b

Please sign in to comment.