mirror of https://github.com/zulip/zulip.git
home.py: move enter_sends to register_ret.
Move the user_profile data section down into fetch_initial_state_data so it entirely pulls from register_ret for #3853
This commit is contained in:
parent
6f770c2465
commit
9daf9faa5c
|
@ -135,6 +135,7 @@ def fetch_initial_state_data(user_profile, event_types, queue_id,
|
|||
state['can_create_streams'] = user_profile.can_create_streams()
|
||||
state['is_admin'] = user_profile.is_realm_admin
|
||||
state['user_id'] = user_profile.id
|
||||
state['enter_sends'] = user_profile.enter_sends
|
||||
|
||||
if want('realm_bot'):
|
||||
state['realm_bots'] = get_owned_bot_dicts(user_profile)
|
||||
|
|
|
@ -208,7 +208,6 @@ def home_real(request):
|
|||
# TODO: Move all of these data to register_ret and pull from there
|
||||
fullname = user_profile.full_name,
|
||||
email = user_profile.email,
|
||||
enter_sends = user_profile.enter_sends,
|
||||
|
||||
# Realm foreign key data from register_ret.
|
||||
# TODO: Rename these to match register_ret values.
|
||||
|
@ -254,6 +253,7 @@ def home_real(request):
|
|||
'enable_sounds',
|
||||
'enable_stream_desktop_notifications',
|
||||
'enable_stream_sounds',
|
||||
'enter_sends',
|
||||
'hotspots',
|
||||
'is_admin',
|
||||
'last_event_id',
|
||||
|
|
Loading…
Reference in New Issue