From dc6d7d0d12b78695718bcc82057592c87e63c412 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 20 Apr 2018 11:55:29 -0700 Subject: [PATCH] actions: Use presence_disabled for presence zephyr_mirror code path. This is part of the effort to remove the use of is_zephyr_mirror_realm across the code path for situations that might be relevant for other users. It helps keep the code readable. --- zerver/lib/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 4acd63187a..fabdc53830 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -3315,7 +3315,7 @@ def do_update_user_presence(user_profile: UserProfile, update_fields.append("status") presence.save(update_fields=update_fields) - if not user_profile.realm.is_zephyr_mirror_realm and (created or became_online): + if not user_profile.realm.presence_disabled 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. Note that we won't send an update here for a