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.

dropdown_widget: Fix bug in `disable_for_spectators`

Kislay Vermad38d82edc32a
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.ts
index 331c90fd6ef..9ad3e233345 100644
--- a/web/src/dropdown_widget.ts
+++ b/web/src/dropdown_widget.ts
@@ -179,6 +179,11 @@ export class DropdownWidget {
);
return;
}
+
+ if (this.disable_for_spectators && page_params.is_spectator) {
+ return;
+ }
+
this.instance = tippy.delegate(delegate_container, {
...popover_menus.default_popover_props,
target: this.widget_selector,