diff --git a/zerver/lib/events.py b/zerver/lib/events.py index 54e57488a1..8d70a380c6 100644 --- a/zerver/lib/events.py +++ b/zerver/lib/events.py @@ -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 diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.py index 8725e8d6d9..600962d432 100644 --- a/zerver/tests/test_home.py +++ b/zerver/tests/test_home.py @@ -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",