1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-04 02:28:18 +00:00

Fixed hiding messages

This commit is contained in:
M66B 2022-07-01 21:54:27 +02:00
parent 524bb3c26d
commit 944138c253
2 changed files with 4 additions and 2 deletions

View file

@ -647,7 +647,9 @@ public interface DaoMessage {
" AND NOT ui_snoozed IS NULL")
List<EntityMessage> getSnoozed(Long folder);
@Query("SELECT COUNT(*) FROM message WHERE NOT ui_snoozed IS NULL")
@Query("SELECT COUNT(*) FROM message" +
" WHERE NOT ui_snoozed IS NULL" +
" AND ui_snoozed <> " + Long.MAX_VALUE)
int getSnoozedCount();
@Query("SELECT id AS _id, subject AS suggestion FROM message" +

View file

@ -584,7 +584,7 @@ public class EntityMessage implements Serializable {
}
static void snooze(Context context, long id, Long wakeup) {
if (wakeup != null) {
if (wakeup != null && wakeup != Long.MAX_VALUE) {
/*
java.lang.IllegalStateException: Maximum limit of concurrent alarms 500 reached for uid: u0a601, callingPackage: eu.faircode.email
at android.os.Parcel.createExceptionOrNull(Parcel.java:2433)