mirror of https://github.com/zulip/zulip.git
events: Add upload_quota to initial state data.
This commit is contained in:
parent
0ce62cd3e1
commit
22bab1c7ec
|
@ -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)
|
||||
|
||||
|
|
|
@ -148,6 +148,7 @@ class HomeTest(ZulipTestCase):
|
|||
"twenty_four_hour_time",
|
||||
"unread_msgs",
|
||||
"unsubscribed",
|
||||
"upload_quota",
|
||||
"use_websockets",
|
||||
"user_id",
|
||||
"zulip_version",
|
||||
|
|
Loading…
Reference in New Issue