From 8aa615157a64ecc6600ab946551663f18797b832 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Mon, 23 Sep 2024 14:57:12 +0200 Subject: [PATCH] Also start the FetchForegroundService in onDeletedMessages() (#3317) See https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages Shouldn't happen very often, but if it does, it's good to connect, too. --- .../thoughtcrime/securesms/notifications/FcmReceiveService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java b/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java index 8aecf54a8..ec145fb76 100644 --- a/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java +++ b/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java @@ -102,7 +102,7 @@ public class FcmReceiveService extends FirebaseMessagingService { @Override public void onDeletedMessages() { Log.i(TAG, "FCM push notifications dropped"); - // nothing special to do as we're running now and notifications should be processed as usual. + FetchForegroundService.start(this); } @Override