mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
I make server_events slimmer by not handling a specific property when subs.update_subscription_properties() should do all the dispatching (and mostly did). And then since update_subscription_properties() has a "sub" already, I can call directly to stream_list code and remove a function from subs.js. Since I lose the wrapper function in subs.js, I rename the stream_list function as part of this commit. The only code that gets slightly heavier here is that we have two lines in the 'pin_to_top' case instead of one.