Update the date separators to use "Today", "Yesterday" etc for messages in the past 7 days. (#4785)

* Update the date separators to use "Today", "Yesterday" etc for messages in the past 7 days.

* Fix the observation tests.
This commit is contained in:
Doug
2025-11-26 10:47:29 +00:00
committed by GitHub
parent 623bd54f2b
commit d907ca7a79
4 changed files with 58 additions and 2 deletions
@@ -12,7 +12,7 @@ struct SeparatorRoomTimelineView: View {
let timelineItem: SeparatorRoomTimelineItem
var body: some View {
Text(timelineItem.timestamp.formatted(date: .complete, time: .omitted))
Text(timelineItem.timestamp.formattedDateSeparator())
.font(.compound.bodySMSemibold)
.foregroundColor(.compound.textPrimary)
.frame(maxWidth: .infinity)