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.

popovers: Export stream_popover.elem_to_stream_id.

palashb0184a5c1907f93
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.js
index bab0fabf398..3cee336ccc6 100644
--- a/web/src/stream_popover.js
+++ b/web/src/stream_popover.js
@@ -75,7 +75,7 @@ export function topic_sidebar_menu_handle_keyboard(key) {
popovers.popover_items_handle_keyboard(key, items);
}
-function elem_to_stream_id($elem) {
+export function elem_to_stream_id($elem) {
const stream_id = Number.parseInt($elem.attr("data-stream-id"), 10);
if (stream_id === undefined) {