events: Include realm_plan_type in initial state data.

This commit is contained in:
Vishnu Ks 2019-01-16 14:03:17 +05:30 committed by Tim Abbott
parent 69627c9ee4
commit ef3fbfeb98
2 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,7 @@ def fetch_initial_state_data(user_profile: UserProfile,
state['realm_password_auth_enabled'] = password_auth_enabled(realm)
state['realm_push_notifications_enabled'] = push_notifications_enabled()
state['realm_upload_quota'] = realm.upload_quota_bytes()
state['realm_plan_type'] = realm.plan_type
if realm.notifications_stream and not realm.notifications_stream.deactivated:
notifications_stream = realm.notifications_stream

View File

@ -164,6 +164,7 @@ class HomeTest(ZulipTestCase):
"realm_non_active_users",
"realm_notifications_stream_id",
"realm_password_auth_enabled",
"realm_plan_type",
"realm_presence_disabled",
"realm_push_notifications_enabled",
"realm_send_welcome_emails",