events: Include realm_upload_quota in initial state data.

This commit is contained in:
Vishnu Ks
2019-01-11 16:51:13 +00:00
committed by Tim Abbott
parent e522308507
commit cc9f00f53e
2 changed files with 3 additions and 0 deletions

View File

@@ -201,6 +201,8 @@ def fetch_initial_state_data(user_profile: UserProfile,
state['realm_email_auth_enabled'] = email_auth_enabled(realm)
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()
if realm.notifications_stream and not realm.notifications_stream.deactivated:
notifications_stream = realm.notifications_stream
state['realm_notifications_stream_id'] = notifications_stream.id

View File

@@ -168,6 +168,7 @@ class HomeTest(ZulipTestCase):
"realm_push_notifications_enabled",
"realm_send_welcome_emails",
"realm_signup_notifications_stream_id",
"realm_upload_quota",
"realm_uri",
"realm_user_groups",
"realm_users",