-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Time format in quoted message according to user preference #28912
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #28912 +/- ##
===========================================
+ Coverage 43.94% 45.76% +1.81%
===========================================
Files 642 681 +39
Lines 11766 12879 +1113
Branches 2103 2226 +123
===========================================
+ Hits 5171 5894 +723
- Misses 6299 6668 +369
- Partials 296 317 +21
Flags with carried forward coverage won't be shown. Click here to find out more. |
@hugocostadev , Can you please review this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at the code, this will ignore context view of "time range differences" - as in, currently, if the quoted message was sent let's say yesterday, it'll show "yesterday", if within the week but not yesterday, it'll specify the day exactly, and so on.
instead of this, a more appropriate fix would be to incorporate the format hook into the timeago hook.
Hi @ayush3160 ... @debdutdeb it's correct, just a tip: edit the const format = useSetting('Message_TimeFormat') as string; to Check a quoted message from before the same day example: BTW, this is will also fix several other places, check below: |
@ayush3160 can you resolve the conflict? |
I'll review again this PR, some changes were made |
🦋 Changeset detectedLatest commit: fc448dc The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Proposed changes (including videos or screenshots)
This pull request adds the time format in quoted message according to the user preference in settings.
Images for different Format settings ->
Issue(s)
fix #28863
Steps to test or reproduce