events: Add upload_quota to initial state data.

This commit is contained in:
Vishnu Ks 2017-09-15 04:46:05 +05:30 committed by Tim Abbott
parent 0ce62cd3e1
commit 22bab1c7ec
2 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,9 @@ def fetch_initial_state_data(user_profile, event_types, queue_id,
if want('attachments'):
state['attachments'] = user_attachments(user_profile)
if want('upload_quota'):
state['upload_quota'] = user_profile.quota
if want('total_uploads_size'):
state['total_uploads_size'] = get_total_uploads_size_for_user(user_profile)

View File

@ -148,6 +148,7 @@ class HomeTest(ZulipTestCase):
"twenty_four_hour_time",
"unread_msgs",
"unsubscribed",
"upload_quota",
"use_websockets",
"user_id",
"zulip_version",