mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
topic_popover: Remove redundant code from previous visibility options.
Commit 3f2ab44f94 removed the 'development' guard and cleaned the
older UI of the previous topic visibility options implementation,
but it missed the related JS logic.
This commit removes this redundant code, which was now present in
`web/src/topic_popover.js`.
This commit is contained in:
@@ -108,42 +108,6 @@ export function initialize() {
|
||||
);
|
||||
});
|
||||
|
||||
$popper.one("click", ".sidebar-popover-unmute-topic", () => {
|
||||
user_topics.set_user_topic_visibility_policy(
|
||||
stream_id,
|
||||
topic_name,
|
||||
user_topics.all_visibility_policies.UNMUTED,
|
||||
);
|
||||
popover_menus.hide_current_popover_if_visible(instance);
|
||||
});
|
||||
|
||||
$popper.one("click", ".sidebar-popover-remove-unmute", () => {
|
||||
user_topics.set_user_topic_visibility_policy(
|
||||
stream_id,
|
||||
topic_name,
|
||||
user_topics.all_visibility_policies.INHERIT,
|
||||
);
|
||||
popover_menus.hide_current_popover_if_visible(instance);
|
||||
});
|
||||
|
||||
$popper.one("click", ".sidebar-popover-mute-topic", () => {
|
||||
user_topics.set_user_topic_visibility_policy(
|
||||
stream_id,
|
||||
topic_name,
|
||||
user_topics.all_visibility_policies.MUTED,
|
||||
);
|
||||
popover_menus.hide_current_popover_if_visible(instance);
|
||||
});
|
||||
|
||||
$popper.one("click", ".sidebar-popover-remove-mute", () => {
|
||||
user_topics.set_user_topic_visibility_policy(
|
||||
stream_id,
|
||||
topic_name,
|
||||
user_topics.all_visibility_policies.INHERIT,
|
||||
);
|
||||
popover_menus.hide_current_popover_if_visible(instance);
|
||||
});
|
||||
|
||||
$popper.one("click", ".sidebar-popover-unstar-all-in-topic", () => {
|
||||
starred_messages_ui.confirm_unstar_all_messages_in_topic(
|
||||
Number.parseInt(stream_id, 10),
|
||||
|
||||
Reference in New Issue
Block a user