Don't send on-demand presence information for mit users

(imported from commit 711a197b9a8c1e6c66d768b240c7bce7595e5b3b)
This commit is contained in:
Leo Franchi 2013-04-16 09:37:25 -04:00
parent c024653331
commit befe7c26d3
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ def do_update_user_presence(user_profile, client, log_time, status):
presence.status = status
presence.save(update_fields=["timestamp", "status"])
if created or became_online:
if not user_profile.realm.domain == "mit.edu" and (created or became_online):
# Push event to all users in the realm so they see the new user
# appear in the presence list immediately, or the newly online
# user without delay