* Checks for condition before removing the notification
* Misc
(cherry picked from commit fe12190f4b)
Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com>
This commit is contained in:
parent
53d6c60d8d
commit
688e174ae4
1 changed files with 4 additions and 1 deletions
|
|
@ -215,9 +215,12 @@ public class CustomPushNotification extends PushNotification {
|
|||
if (channelId != null) {
|
||||
Map<String, List<Integer>> notificationsInChannel = loadNotificationsMap(mContext);
|
||||
List<Integer> notifications = notificationsInChannel.get(channelId);
|
||||
if (notifications == null) {
|
||||
return;
|
||||
}
|
||||
notifications.remove(notificationId);
|
||||
saveNotificationsMap(mContext, notificationsInChannel);
|
||||
clearChannelNotifications(mContext, channelId);
|
||||
clearChannelNotifications(mContext, channelId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue