handle_push_notification: Remove the if condition.

'if apple_devices or android_devices' doesn't servce any purpose.
This commit is contained in:
Umair Khan
2017-05-12 10:50:18 +05:00
committed by Tim Abbott
parent c4e5b75ead
commit fc0b9358e7

View File

@@ -382,7 +382,6 @@ def handle_push_notification(user_profile_id, missed_message):
apple_devices = list(PushDeviceToken.objects.filter(user=user_profile,
kind=PushDeviceToken.APNS))
if apple_devices or android_devices:
# TODO: set badge count in a better way
if apple_devices:
send_apple_push_notification(user_profile.id, apple_devices,