mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
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:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user