Is your feature request related to a problem? Please describe.
Component for displaying chat history
Describe the solution you'd like
It should accept an array of chat messages, and display real messages on this basis. Whenever there's big difference between two messages, it should show the date above the newer one (just like on the screen).
If the difference is less than 1h, express it in minutes
If the difference is less than one day, express it in hours
If the difference is less than one week, express it in days
If the difference is less than one month, express it in weeks
etc.
Newer messages should be at the bottom, while older at the top.
Is your feature request related to a problem? Please describe. Component for displaying chat history
Describe the solution you'd like It should accept an array of chat messages, and display real messages on this basis. Whenever there's big difference between two messages, it should show the date above the newer one (just like on the screen). If the difference is less than 1h, express it in minutes If the difference is less than one day, express it in hours If the difference is less than one week, express it in days If the difference is less than one month, express it in weeks etc.
Newer messages should be at the bottom, while older at the top.
Describe alternatives you've considered N/A
User story N/A
Additional context