From befe7c26d3b7394ba61e2a3bab3ea05b63974234 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 16 Apr 2013 09:37:25 -0400 Subject: [PATCH] Don't send on-demand presence information for mit users (imported from commit 711a197b9a8c1e6c66d768b240c7bce7595e5b3b) --- zephyr/lib/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/lib/actions.py b/zephyr/lib/actions.py index 1746815101..b77c85e158 100644 --- a/zephyr/lib/actions.py +++ b/zephyr/lib/actions.py @@ -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