EmbeddedChat
EmbeddedChat copied to clipboard
feat: Added Support for displaying the timestamp messages
Brief Title
Added Support for displaying the timestamp messages
Acceptance Criteria fulfillment
- [X] Added support for rendering timestamps in various formats like relative time ("5 minutes ago") or full date and time.
- [X] Implemented flexible timestamp formatting options (e.g., short time, full date, long-form date with time).
- [X] Ensured the TimestampElement correctly handles and displays timestamps based on the provided format.
Fixes #987
Video/Screenshots
https://github.com/user-attachments/assets/34863b13-1c22-43eb-8e08-a78cb6cf07c3
PR Test Details
Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace <pr_number> with the actual PR number.
Hey @Spiral-Memory , should we consider a different approach? Using Unix timestamps might be less user-friendly since users would need to convert their time into the correct format, which adds extra effort.