mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-10 02:53:46 +02:00
Enabled DND for all new message notifications by default
This commit is contained in:
@@ -3959,6 +3959,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
channel.setGroup("contacts");
|
||||
channel.setDescription(from.getPersonal());
|
||||
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
channel.setBypassDnd(true);
|
||||
channel.enableLights(true);
|
||||
nm.createNotificationChannel(channel);
|
||||
onActionEditChannel();
|
||||
|
||||
@@ -216,6 +216,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
channel.setGroup(group.getId());
|
||||
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
channel.setBypassDnd(true);
|
||||
channel.enableLights(true);
|
||||
nm.createNotificationChannel(channel);
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ public class TupleFolderEx extends EntityFolder implements Serializable {
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
channel.setGroup(group.getId());
|
||||
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
channel.setBypassDnd(true);
|
||||
channel.enableLights(true);
|
||||
nm.createNotificationChannel(channel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user