From 6076a6a38d3110bbe78f88dfc03212b9c53f20e3 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 8 Sep 2017 07:20:13 -0700 Subject: [PATCH] Remove unused is_mirror_dummy fields. --- zerver/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zerver/models.py b/zerver/models.py index 4ff6ce7f6d..003235c61b 100644 --- a/zerver/models.py +++ b/zerver/models.py @@ -1625,7 +1625,6 @@ class UserPresence(models.Model): 'user_profile__email', 'user_profile__id', 'user_profile__enable_offline_push_notifications', - 'user_profile__is_mirror_dummy', ) if PushDeviceToken.objects.filter(user=user_profile).exists(): @@ -1659,7 +1658,6 @@ class UserPresence(models.Model): 'user_profile__email', 'user_profile__id', 'user_profile__enable_offline_push_notifications', - 'user_profile__is_mirror_dummy', ) mobile_user_ids = [row['user'] for row in PushDeviceToken.objects.filter( @@ -1723,8 +1721,8 @@ class UserPresence(models.Model): @staticmethod def to_presence_dict(client_name, status, dt, push_enabled=False, - has_push_devices=False, is_mirror_dummy=None): - # type: (Text, int, datetime.datetime, bool, bool, Optional[bool]) -> Dict[str, Any] + has_push_devices=False): + # type: (Text, int, datetime.datetime, bool, bool) -> Dict[str, Any] presence_val = UserPresence.status_to_string(status) timestamp = datetime_to_timestamp(dt)