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_view: Extract looking up a row by its conversation key.

Aman Agrawaldc8a37c28d4a
diff --git a/web/src/recent_view_ui.ts b/web/src/recent_view_ui.ts
index 195944159ab..f2ea8cbf347 100644
--- a/web/src/recent_view_ui.ts
+++ b/web/src/recent_view_ui.ts
@@ -957,8 +957,12 @@ function get_conversation_key(conversation: ConversationData): string {
return recent_view_util.get_key_from_message(msg);
}
+function get_conversation_row(conversation_key: string): JQuery {
+ return $(`#${CSS.escape(recent_conversation_key_prefix + conversation_key)}`);
+}
+
function get_topic_row(topic_data: ConversationData): JQuery {
- return $(`#${CSS.escape(recent_conversation_key_prefix + get_conversation_key(topic_data))}`);
+ return get_conversation_row(get_conversation_key(topic_data));
}
export function process_topic_edit(