Return the realm domain if the requesting client requests it

(imported from commit c8e6e388460931076ae3d12b0c5a5dde46b39ffa)
This commit is contained in:
Leo Franchi
2014-02-20 10:52:43 -05:00
parent 5631e7e624
commit 38a4011a52

View File

@@ -2020,6 +2020,9 @@ def fetch_initial_state_data(user_profile, event_types, queue_id):
if want('realm'):
state['realm_name'] = user_profile.realm.name
if want('realm_domain'):
state['realm_domain'] = user_profile.realm.domain
if want('realm_emoji'):
state['realm_emoji'] = user_profile.realm.get_emoji()