For the most part, the timestamps on chat messages work pretty well. You don't really notice they're broken until you look at how they're implemented.
However, if you left the window open for a long time, you'd notice that the latest message always display "a few minutes ago" (< this does not seem to be the case!)
Similarly, if you left the window open for a very long time, spanning days, you'd see "22:48:49" but it should really say, "2 days ago"
When you refresh, it gets redrawn properly.
There's gotta be a good way to be smart about redrawing the timestamps without wasting CPU:
channel is in focus
window has become focused
attempt to redraw timestamps
place a lock on redrawing timestamps for some sensible period OR only redraw those of messages that occurred today on a schedule?
For the most part, the timestamps on chat messages work pretty well. You don't really notice they're broken until you look at how they're implemented.
However, if you left the window open for a long time, you'd notice that the latest message always display "a few minutes ago"(< this does not seem to be the case!)Similarly, if you left the window open for a very long time, spanning days, you'd see "22:48:49" but it should really say, "2 days ago"
When you refresh, it gets redrawn properly.
There's gotta be a good way to be smart about redrawing the timestamps without wasting CPU: