home.py: move initial_presences as presenses to register_ret.

Simplify the page_params generation logic #3853.
This commit is contained in:
fionabunny
2017-04-24 12:23:50 -07:00
committed by Tim Abbott
parent 84c4d67916
commit 453fc06686
3 changed files with 5 additions and 4 deletions

View File

@@ -242,7 +242,6 @@ def home_real(request):
# TODO: Rename these to match register_ret values.
people_list = register_ret['realm_users'],
initial_pointer = register_ret['pointer'],
initial_presences = register_ret['presences'],
event_queue_id = register_ret['queue_id'],
# Misc. extra data.
@@ -276,6 +275,7 @@ def home_real(request):
'max_message_id',
'muted_topics',
'never_subscribed',
'presences',
'realm_add_emoji_by_admins_only',
'realm_allow_message_editing',
'realm_authentication_methods',