Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 791313a2 authored by Michael Enoma's avatar Michael Enoma
Browse files

Don't use "unread count" in notifications

parent defb5946
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2342,7 +2342,6 @@ public class MessagingController {
        private final Account account;
        private final MessagingListener listener;
        private final LocalStore localStore;
        private final int previousUnreadMessageCount;
        private final boolean suppressNotifications;
        private final NotificationState notificationState;
        boolean syncFailed = false;
@@ -2354,7 +2353,6 @@ public class MessagingController {
            this.suppressNotifications = suppressNotifications;
            this.notificationState = notificationState;
            this.localStore = getLocalStoreOrThrow(account);
            previousUnreadMessageCount = getUnreadMessageCount(account);
        }

        @Override
@@ -2412,7 +2410,7 @@ public class MessagingController {
                Timber.v("Creating notification for message %s:%s", localFolder.getName(), message.getUid());
                // Notify with the localMessage so that we don't have to recalculate the content preview.
                boolean silent = notificationState.wasNotified();
                notificationController.addNewMailNotification(account, message, previousUnreadMessageCount, silent);
                notificationController.addNewMailNotification(account, message, silent);
                notificationState.setWasNotified(true);
            }
            if (!message.isSet(Flag.SEEN)) {
+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@
    <string name="global_settings_lock_screen_notification_visibility_title">Lock Screen Notifications</string>
    <string name="global_settings_lock_screen_notification_visibility_nothing">No lock screen notifications</string>
    <string name="global_settings_lock_screen_notification_visibility_app_name">Application name</string>
    <string name="global_settings_lock_screen_notification_visibility_message_count">Unread message count</string>
    <string name="global_settings_lock_screen_notification_visibility_message_count">New message count</string>
    <string name="global_settings_lock_screen_notification_visibility_senders">Message count and senders</string>
    <string name="global_settings_lock_screen_notification_visibility_everything">Same as when screen unlocked</string>