diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 85e9a14810..47c594c374 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1224,11 +1224,13 @@ public class AdapterMessage extends RecyclerView.Adapter 0) { + NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); - InternetAddress from = (InternetAddress) message.from[0]; - String channelName = "notification." + from.getAddress().toLowerCase(); - nm.deleteNotificationChannel(channelName); + InternetAddress from = (InternetAddress) message.from[0]; + String channelName = "notification." + from.getAddress().toLowerCase(); + nm.deleteNotificationChannel(channelName); + } } private void onAddContact(TupleMessageEx message) {