Skip to content

Improve date display, forward timestamps, and group creation flow#281

Merged
gdlbo merged 4 commits into
monogram-android:developfrom
yadavnikhil03:feature/ux-enhancements
May 6, 2026
Merged

Improve date display, forward timestamps, and group creation flow#281
gdlbo merged 4 commits into
monogram-android:developfrom
yadavnikhil03:feature/ux-enhancements

Conversation

@yadavnikhil03
Copy link
Copy Markdown
Contributor

Date separators in conversations currently show raw dates like "4 May" regardless of how recent the message is. This makes it hard to quickly gauge message recency at a glance.

This change updates formatChatDayLabel() to display relative labels — "Today", "Yesterday", or the weekday name — for messages within the past week, falling back to the full date for older messages. The year-boundary edge case (e.g. Dec 31 → Jan 1) is handled correctly.

Forwarded messages only showed the time of the original post, which loses context when the forward is from a different day. The forward header now shows the date alongside the time for non-today forwards (e.g. "3 May, 14:30").

Creating a group with only yourself was impossible because the member selection step required at least one other user before allowing the user to proceed. Both official Telegram clients allow this. The isNotEmpty() gate on the member list has been removed so users can continue to the group info screen with zero members selected.

Closes #87, #90, #149

Display Today, Yesterday, and weekday names for recent messages
instead of raw dates in date separators.

Closes monogram-android#87
Remove member selection gate to enable single-member group creation
via TDLib's createBasicGroupChat API.

Closes monogram-android#149
Display date alongside time for forwards/reposts that originated
on a different day (e.g. '3 May, 14:30' instead of just '14:30').

Closes monogram-android#90
@yadavnikhil03 yadavnikhil03 requested a review from gdlbo May 6, 2026 15:57
@gdlbo gdlbo merged commit c5da273 into monogram-android:develop May 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Features] Better write dates on messages

2 participants