Add delivery_email field to page_params.

This allows the frontend to use the `delivery_email`
field for display use.
This commit is contained in:
Joshua Pan
2018-07-16 00:07:16 -07:00
committed by Tim Abbott
parent d1d9d63841
commit a9d9919648
2 changed files with 2 additions and 0 deletions

View File

@@ -228,6 +228,7 @@ def fetch_initial_state_data(user_profile: UserProfile,
state['user_id'] = user_profile.id
state['enter_sends'] = user_profile.enter_sends
state['email'] = user_profile.email
state['delivery_email'] = user_profile.delivery_email
state['full_name'] = user_profile.full_name
if want('realm_bot'):

View File

@@ -57,6 +57,7 @@ class HomeTest(ZulipTestCase):
"debug_mode",
"default_language",
"default_language_name",
"delivery_email",
"dense_mode",
"development_environment",
"email",