mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
Functions in pill_typeahead.js assumed the type of required pills to be user by default. But this created several readability issues with its code, as a result, this codebase appeared hard to change because of hacky checks involved due to this assumption. To improve these we use `include_users` check wherever possible and simplify the code to clarify the logic involved in typeahead functions in this module. Also updated existing stream_edit tests to adjust them with changed code.