Files
zulip/static/js
YashRE42 25765faf58 navbar: Live update sub_count.
Previously, the navbar sub count would not live update as users
subscribed or unsubscribed, this commit adds the relevant calls in
stream events.

It would have been better to just have a single call within
server_events_dispatch but it seems difficult due to the way of
mark_subscribed and mark_unsubscribed are structured.

stream_events.mark_unsubscribed conditionally calls
subs.update_settings_for_unsubscribed which calls
subs.rerender_subscriptions_settings and as such handles the update
for the subscriptions modal on its own. Hence, we simply rely on the
stream_data.update_calculated_fields to ensure the subscriber counts
are updated and make a call to
tab_bar.maybe_rerender_title_area_for_stream(sub).

stream_events.mark_subscribed is similar.
2020-07-13 15:38:15 -07:00
..
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:53:39 -07:00
2020-06-18 09:08:46 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:53:39 -07:00
2020-07-13 15:38:15 -07:00
2020-07-13 15:38:15 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:50 -07:00