From 4ce1d75733eb4e23303317f5ee78674dcd6d88d9 Mon Sep 17 00:00:00 2001 From: Miguel Alatzar Date: Fri, 6 Dec 2019 11:35:15 -0700 Subject: [PATCH] Set number to 0 only if null (#3668) --- .../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);