-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Changes chat messages to use absolute timestamps #159
Conversation
afd6b04
to
3a9a185
Compare
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.
Change works well, times and formats are updated based on user's locale. Please see a small suggestion on how to improve ChatMessages
logic below.
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.
Looks good
Let's fix CI or understand why it is failing before merging |
093e3d8
to
3f0d16e
Compare
Updated per @dlqqq's feedback |
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.
Awesome work! 👍
* Changes messages to use absolute timestamps * Only calls setTimestamps if a new timestamp is added * Unwraps function * Prepopulates newTimestamps
* Changes messages to use absolute timestamps * Only calls setTimestamps if a new timestamp is added * Unwraps function * Prepopulates newTimestamps
Fixes #87.
Instead of relative time (X minutes ago), displays messages using 12-hour or 24-hour time, based on the user's locale. Message timestamps are only computed once, not repeatedly every 5 seconds.