Fix quiet time support when checking whether to notify for new messages

This commit is contained in:
cketti 2018-06-24 00:08:29 +02:00
parent 93eb2dbd9b
commit c757bf1076

View file

@ -2709,6 +2709,10 @@ public class MessagingController {
return false;
}
if (K9.isQuietTime() && !K9.isNotificationDuringQuietTimeEnabled()) {
return false;
}
// Do not notify if the user does not have notifications enabled or if the message has
// been read.
if (!account.isNotifyNewMail() || message.isSet(Flag.SEEN) || isOldMessage) {