mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	events: Include realm_upload_quota in initial state data.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user