timerender: Revert extra changes to time in recent conversations.

In #25012, which was intended to only modify the buddy list, we
accidentally changed the rendering of times for several other code
paths, including recent conversations, that were using the
last_status_from_time function, whose name really suggested it only
was used for the buddy list.

Extract a new function with a better name for the more common relative
time use case.
This commit is contained in:
Joseph Ho
2023-04-07 20:13:36 -04:00
committed by Tim Abbott
parent 85029d604a
commit 1e98a659c1
5 changed files with 107 additions and 5 deletions

View File

@@ -136,7 +136,7 @@ mock_esm("../src/stream_list", {
handle_narrow_deactivated: noop,
});
mock_esm("../src/timerender", {
last_seen_status_from_date: () => "Just now",
relative_time_string_from_date: () => "Just now",
get_full_datetime: () => "date at time",
});
mock_esm("../src/sub_store", {