Set number to 0 only if null (#3669)

This commit is contained in:
Mattermost Build 2019-12-06 19:38:23 +01:00 committed by Miguel Alatzar
parent b19d804c39
commit 4ef1fb0eab

View file

@ -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);