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.

narrow_channel_header: Navigate to use set view for channel on click.

Aman Agrawalb651d4661873
diff --git a/web/src/click_handlers.ts b/web/src/click_handlers.ts
index 75617f8d094..104d5c2f872 100644
--- a/web/src/click_handlers.ts
+++ b/web/src/click_handlers.ts
@@ -420,24 +420,6 @@ export function initialize(): void {
return nearest.id;
}
- $("#message_feed_container").on(
- "click",
- ".narrows_by_recipient",
- function (this: HTMLElement, e) {
- if (e.metaKey || e.ctrlKey || e.shiftKey) {
- return;
- }
- e.preventDefault();
- if (document.getSelection()?.type === "Range") {
- return;
- }
- const row_id = get_row_id_for_narrowing(this);
- // TODO: Navigate user according to `web_channel_default_view` setting.
- // Also, update the tooltip hotkey in recipient bar.
- message_view.narrow_by_recipient(row_id, {trigger: "message header"});
- },
- );
-
$("#message_feed_container").on("click", ".narrows_by_topic", function (this: HTMLElement, e) {
if (e.metaKey || e.ctrlKey || e.shiftKey) {
return;