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.

inbox_ui: Read topic stream ID from its own menu element.

Pratik Chanda0f76c20e3242
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.ts
index 5c7ec76ed11..3601a5b5995 100644
--- a/web/src/inbox_ui.ts
+++ b/web/src/inbox_ui.ts
@@ -1630,9 +1630,9 @@ function update_closed_compose_text($row: JQuery, is_header_row: boolean): void
};
}
} else {
- const $stream = $row.parent(".inbox-topic-container").prev(".inbox-header");
+ const $topic_menu_elt = $row.find(".inbox-topic-menu");
reply_recipient_information = {
- stream_id: Number($stream.attr("data-stream-id")),
+ stream_id: Number($topic_menu_elt.attr("data-stream-id")),
topic: $row.find(".inbox-topic-name a").text(),
};
}