hannesm / jackline

minimalistic secure XMPP client in OCaml
BSD 2-Clause "Simplified" License
251 stars 20 forks source link

switch to displaying dates as soon as the day changes #214

Closed sternenseemann closed 4 years ago

sternenseemann commented 4 years ago

Previously we switched to displaying dates as soon as 24h passed. This is however potentially confusing for users:

04-08 16:00 -O> Some message
17:00:00 -O> Some other message

Was "Some other message" sent today or yesterday? To answer this question the user must:

With the new behavior, we prefix the times with a date as soon as we cross the day border. This way it requires no awareness of the current time to determine on which day a message was received: All messages without a date are today, all messages with a date are yesterday or earlier.

Additionally the rendering of old messages changes only once per day. Previously it was kind of irritating if you were using jackline around the same time on multiple days without clearing the history since every once in a while a single message further up changes because its timestamp is suddenly rendered differently.

hannesm commented 4 years ago

thanks