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.

set_up_streams: Fix function to use value from `opts`

Sanchit Sharma05cc24d2f0e8
diff --git a/web/src/pill_typeahead.ts b/web/src/pill_typeahead.ts
index a6d8611521e..9ed7522b122 100644
--- a/web/src/pill_typeahead.ts
+++ b/web/src/pill_typeahead.ts
@@ -84,10 +84,10 @@ export function set_up_stream(
$element: $input,
type: "contenteditable",
};
- opts.help_on_empty_strings ||= false;
+ opts.help_on_empty_strings ??= false;
new Typeahead(bootstrap_typeahead_input, {
dropup: true,
- helpOnEmptyStrings: true,
+ helpOnEmptyStrings: opts.help_on_empty_strings,
source(_query: string): StreamPillData[] {
return stream_pill.typeahead_source(pills, opts.invite_streams);
},