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:
parent
524bb3c26d
commit
944138c253
2 changed files with 4 additions and 2 deletions
|
@ -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" +
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue