From 4ef1fb0eabba9ab7265552919fb55b484fa634d0 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 6 Dec 2019 19:38:23 +0100 Subject: [PATCH] Set number to 0 only if null (#3669) --- .../main/java/com/mattermost/rnbeta/CustomPushNotification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java b/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java index 4ef9892ac..b05473f7b 100644 --- a/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java +++ b/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java @@ -279,7 +279,7 @@ public class CustomPushNotification extends PushNotification { private void setNotificationNumber(Notification.Builder notification, String channelId) { Integer number = channelIdToNotificationCount.get(channelId); - if (number != null) { + if (number == null) { number = 0; } notification.setNumber(number);