From 112a67097b3e8cc5ace7ae14990a3c7cf1bc71d8 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Tue, 9 May 2017 12:27:37 +0500 Subject: [PATCH] push_notifications: Don't get alert message. Now we set the alert message in the payload functions for both GCM and APNs so no need to get it here. --- zerver/lib/push_notifications.py | 1 - 1 file changed, 1 deletion(-) 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,