diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py index e3eea53b4d..0da000dfde 100644 --- a/zerver/lib/push_notifications.py +++ b/zerver/lib/push_notifications.py @@ -347,7 +347,6 @@ def handle_push_notification(user_profile_id, missed_message): gcm_payload = get_gcm_payload(user_profile, message) if apple_devices or android_devices: - alert = get_alert_from_message(message) # TODO: set badge count in a better way if apple_devices: send_apple_push_notification(user_profile.id, apple_devices,