mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Fix reaction notification data inconsistencies.
Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
@@ -35,6 +35,8 @@ public class DeleteNotificationReceiver extends BroadcastReceiver {
|
||||
|
||||
if (ids == null || mms == null || ids.length != mms.length) return;
|
||||
|
||||
PendingResult finisher = goAsync();
|
||||
|
||||
SignalExecutors.BOUNDED.execute(() -> {
|
||||
for (int i = 0; i < ids.length; i++) {
|
||||
if (!mms[i]) {
|
||||
@@ -43,6 +45,7 @@ public class DeleteNotificationReceiver extends BroadcastReceiver {
|
||||
DatabaseFactory.getMmsDatabase(context).markAsNotified(ids[i]);
|
||||
}
|
||||
}
|
||||
finisher.finish();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ public class MarkReadReceiver extends BroadcastReceiver {
|
||||
|
||||
NotificationCancellationHelper.cancelLegacy(context, intent.getIntExtra(NOTIFICATION_ID_EXTRA, -1));
|
||||
|
||||
PendingResult finisher = goAsync();
|
||||
SignalExecutors.BOUNDED.execute(() -> {
|
||||
List<MarkedMessageInfo> messageIdsCollection = new LinkedList<>();
|
||||
|
||||
@@ -61,6 +62,7 @@ public class MarkReadReceiver extends BroadcastReceiver {
|
||||
process(context, messageIdsCollection);
|
||||
|
||||
ApplicationDependencies.getMessageNotifier().updateNotification(context);
|
||||
finisher.finish();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user