michaelKurowski / lokim2

An internet messenger that cares about privacy.
4 stars 0 forks source link

Chat history component #209

Open michaelKurowski opened 5 years ago

michaelKurowski commented 5 years ago

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 image

michaelKurowski commented 5 years ago

Blocked by #208