mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-21 13:58:26 +00:00
fix: handle bundling properly with the messageIdTag check
This commit is contained in:
parent
975076cb5c
commit
ef8cdf3127
@ -319,8 +319,8 @@ public class DefaultMessageNotifier implements MessageNotifier {
|
|||||||
|
|
||||||
NotificationManager notificationManager = ServiceUtil.getNotificationManager(context);
|
NotificationManager notificationManager = ServiceUtil.getNotificationManager(context);
|
||||||
for (StatusBarNotification notification: notificationManager.getActiveNotifications()) {
|
for (StatusBarNotification notification: notificationManager.getActiveNotifications()) {
|
||||||
|
if ( (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && notification.isAppGroup() == bundled)
|
||||||
if (messageIdTag.equals(notification.getNotification().extras.getString(LATEST_MESSAGE_ID_TAG))) {
|
&& messageIdTag.equals(notification.getNotification().extras.getString(LATEST_MESSAGE_ID_TAG))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user