zulip/web/tests/lib
Sahil Batra 734d1848c0 server_events_dispatch: Update bots list only if needed.
After b21f533af, we now update the organization bots
list on receiving realm_user events since non-admins
can also see bots not owned by them in the list.

But the functions to update bot list should be called
only for bot users and not for others, otherwise it
results in an error.

This can be reproduced by first opening the organization
bots list and then just updating the name of the user.
Calling `redraw_bots_list` on receiving "realm_user/add"
event for non bot users will not raise any error but
still we avoid redrawing the whole list when not required.

This commit fixes the code to call functions to update
bot list only when the event is received for a bot.
2023-03-02 13:26:20 -08:00
..
compose_banner.js
events.js server_events_dispatch: Update bots list only if needed. 2023-03-02 13:26:20 -08:00
handlebars.js
i18n.js
index.js test-js-with-node: Fix source maps for coverage. 2023-02-24 13:54:29 -08:00
markdown_assert.js
mdiff.js
namespace.js
real_jquery.js
stub.js
test.js
zblueslip.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
zjquery.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
zjquery_element.js zjquery: Make FakeElement iterable. 2023-03-02 12:16:56 -08:00
zjquery_event.js
zpage_params.js