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.
This commit is contained in:
Umair Khan 2017-05-09 12:27:37 +05:00 committed by Tim Abbott
parent 3c32bc6d8a
commit 112a67097b
1 changed files with 0 additions and 1 deletions

View File

@ -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,