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 213c85202..b4cc35110 100644 --- a/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java +++ b/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java @@ -119,8 +119,9 @@ public class CustomPushNotification extends PushNotification { switch (type) { case PUSH_TYPE_MESSAGE: case PUSH_TYPE_SESSION: - boolean createSummary = type.equals(PUSH_TYPE_MESSAGE); if (!mAppLifecycleFacade.isAppVisible()) { + boolean createSummary = type.equals(PUSH_TYPE_MESSAGE); + if (type.equals(PUSH_TYPE_MESSAGE)) { if (channelId != null) { Map> notificationsInChannel = loadNotificationsMap(mContext); @@ -145,8 +146,6 @@ public class CustomPushNotification extends PushNotification { } buildNotification(notificationId, createSummary); - } else { - notifyReceivedToJS(); } break; case PUSH_TYPE_CLEAR: