mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
handle_push_notification: Remove the if condition.
'if apple_devices or android_devices' doesn't servce any purpose.
This commit is contained in:
@@ -382,7 +382,6 @@ def handle_push_notification(user_profile_id, missed_message):
|
|||||||
apple_devices = list(PushDeviceToken.objects.filter(user=user_profile,
|
apple_devices = list(PushDeviceToken.objects.filter(user=user_profile,
|
||||||
kind=PushDeviceToken.APNS))
|
kind=PushDeviceToken.APNS))
|
||||||
|
|
||||||
if apple_devices or android_devices:
|
|
||||||
# TODO: set badge count in a better way
|
# TODO: set badge count in a better way
|
||||||
if apple_devices:
|
if apple_devices:
|
||||||
send_apple_push_notification(user_profile.id, apple_devices,
|
send_apple_push_notification(user_profile.id, apple_devices,
|
||||||
|
|||||||
Reference in New Issue
Block a user