From 8fb870c51c685645dc05415fd1775068d461c0a1 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Thu, 16 Oct 2025 19:35:14 +0200 Subject: [PATCH 1/4] don't show badge-counter in app icon for permanent notification --- .../org/thoughtcrime/securesms/connect/KeepAliveService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/thoughtcrime/securesms/connect/KeepAliveService.java b/src/main/java/org/thoughtcrime/securesms/connect/KeepAliveService.java index 4cae5cef9..c6929ce95 100644 --- a/src/main/java/org/thoughtcrime/securesms/connect/KeepAliveService.java +++ b/src/main/java/org/thoughtcrime/securesms/connect/KeepAliveService.java @@ -121,6 +121,7 @@ public class KeepAliveService extends Service { NotificationChannel channel = new NotificationChannel(NotificationCenter.CH_PERMANENT, "Receive messages in background.", NotificationManager.IMPORTANCE_MIN); // IMPORTANCE_DEFAULT will play a sound channel.setDescription("Ensure reliable message receiving."); + channel.setShowBadge(false); NotificationManager notificationManager = context.getSystemService(NotificationManager.class); notificationManager.createNotificationChannel(channel); } From 7cba6edca9e3443b2ddde658d7464379b9eb002e Mon Sep 17 00:00:00 2001 From: adbenitez Date: Thu, 16 Oct 2025 19:46:19 +0200 Subject: [PATCH 2/4] update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f3e743ab..bcd20e880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Delta Chat Android Changelog -## v2.20.0 +## Unreleased * target Android 15 * improve readability of info messages in dark mode @@ -16,6 +16,7 @@ * show dialog if user has permanently denied camera permission and tries to take picture for group avatar * several small fixes and improvements * add experimental built-in calls +* don't show badge counter in app icon for the permanent background notification * update to core 2.20.0 ## v2.11.0 From 8a57954eb37a43eb0e2b3e918df6e62729cf6576 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Tue, 28 Oct 2025 23:16:35 +0100 Subject: [PATCH 3/4] rename permanent channel id, delete old/deprecated one --- .../org/thoughtcrime/securesms/ApplicationContext.java | 7 +++++++ .../securesms/notifications/NotificationCenter.java | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java b/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java index dbe09ab9a..5a0bafd8f 100644 --- a/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java +++ b/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java @@ -12,6 +12,7 @@ import android.util.Log; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatDelegate; +import androidx.core.app.NotificationManagerCompat; import androidx.multidex.MultiDexApplication; import androidx.work.Constraints; import androidx.work.ExistingPeriodicWorkPolicy; @@ -89,6 +90,12 @@ public class ApplicationContext extends MultiDexApplication { dcAccounts = new DcAccounts(new File(getFilesDir(), "accounts").getAbsolutePath()); rpc = new Rpc(new FFITransport(dcAccounts.getJsonrpcInstance())); AccountManager.getInstance().migrateToDcAccounts(this); + + // October-2025 migration: delete deprecated "permanent channel" id + NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this); + notificationManager.deleteNotificationChannel("dc_foreground_notification_ch"); + // end October-2025 migration + int[] allAccounts = dcAccounts.getAll(); for (int accountId : allAccounts) { DcContext ac = dcAccounts.getAccount(accountId); diff --git a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java index 4c96c1c2b..11ef6a130 100644 --- a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java +++ b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java @@ -241,7 +241,7 @@ public class NotificationCenter { // channelIds: CH_MSG_* are used here, the other ones from outside (defined here to have some overview) public static final String CH_MSG_PREFIX = "ch_msg"; public static final String CH_MSG_VERSION = "5"; - public static final String CH_PERMANENT = "dc_foreground_notification_ch"; + public static final String CH_PERMANENT = "dc_fg_notification_ch"; public static final String CH_GENERIC = "ch_generic"; public static final String CH_CALLS_PREFIX = "call_chan"; From 4f4e2bb29123fd1c39f316327fb8d4d740773b7f Mon Sep 17 00:00:00 2001 From: adbenitez Date: Tue, 28 Oct 2025 23:17:03 +0100 Subject: [PATCH 4/4] update changelog --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 445e35c17..be3083bf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Delta Chat Android Changelog +## Unreleased + +* don't show badge counter in app icon for the permanent background notification + ## v2.22.0 2025-10 @@ -17,7 +21,6 @@ * show dialog if user has permanently denied camera permission and tries to take picture for group avatar * several small fixes and improvements * add experimental built-in calls -* don't show badge counter in app icon for the permanent background notification * update to core 2.22.0 ## v2.11.0