Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
composebox_typeahead: Store dm recipient typeahead instance.
Pratik Chanda0ee2e4e635fe
diff --git a/web/src/composebox_typeahead.ts b/web/src/composebox_typeahead.tsindex b279acbb6cb..46b88920c3d 100644--- a/web/src/composebox_typeahead.ts+++ b/web/src/composebox_typeahead.ts@@ -139,6 +139,10 @@ export let emoji_collection: Emoji[] = [];let completing: string | null;let token: string;+export let private_message_recipient_typeahead: Typeahead<+ UserGroupPillData | user_pill.UserPillData+>;+export function get_or_set_token_for_testing(val?: string): string {if (val !== undefined) {token = val;@@ -1577,7 +1581,7 @@ export function initialize({$element: $("#private_message_recipient"),type: "contenteditable",};- new Typeahead(private_message_typeahead_input, {+ private_message_recipient_typeahead = new Typeahead(private_message_typeahead_input, {source: get_pm_people,items: max_num_items,dropup: true,