Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent_topics_timestamp: Fix tooltip.

Dineshef5abb3f33bb
diff --git a/frontend_tests/node_tests/recent_topics.js b/frontend_tests/node_tests/recent_topics.js
index 7a6492960c3..7509e65fc28 100644
--- a/frontend_tests/node_tests/recent_topics.js
+++ b/frontend_tests/node_tests/recent_topics.js
@@ -116,10 +116,7 @@ mock_esm("../../static/js/stream_list", {
mock_esm("../../static/js/timerender", {
last_seen_status_from_date: () => "Just now",
- get_full_datetime: () => ({
- date: "date",
- time: "time",
- }),
+ get_full_datetime: () => "date at time",
});
mock_esm("../../static/js/sub_store", {
get: (stream) => {
@@ -292,7 +289,7 @@ function generate_topic_data(topic_info_array) {
invite_only: false,
is_web_public: true,
last_msg_time: "Just now",
- full_last_msg_date_time: "date time",
+ full_last_msg_date_time: "date at time",
senders: [1, 2],
stream: "stream" + stream_id,
stream_color: "",
diff --git a/static/js/recent_topics_ui.js b/static/js/recent_topics_ui.js
index a9b7bccc0cd..e024922fffd 100644
--- a/static/js/recent_topics_ui.js
+++ b/static/js/recent_topics_ui.js
@@ -278,7 +278,7 @@ function format_topic(topic_data) {
muted,
topic_muted,
participated: topic_data.participated,
- full_last_msg_date_time: full_datetime.date + " " + full_datetime.time,
+ full_last_msg_date_time: full_datetime,
};
}