refactor: Stop using page_params.realm_default_streams.

We now only use `page_params.realm_default_streams` during
initialization, and then after that we use `stream_data`
APIs to get default stream ids and related info.  (And
for the event that replace the data, we just update our
internal data structures as well.)

Long term we should have the server just send us ids here,
since we are now hydrating info from stream data in all places.
This commit is contained in:
Steve Howell
2020-03-22 16:32:31 +00:00
committed by Tim Abbott
parent ba495e57eb
commit 2cd9c77979
3 changed files with 9 additions and 12 deletions

View File

@@ -410,7 +410,8 @@ exports.initialize_everything = function () {
const stream_data_params = pop_fields(
'subscriptions',
'unsubscribed',
'never_subscribed'
'never_subscribed',
'realm_default_streams'
);
const user_groups_params = pop_fields(