mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Show most recent 10 new message notifications
This commit is contained in:
parent
bce427a510
commit
e9c75cab59
2 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ import static androidx.core.app.NotificationCompat.DEFAULT_SOUND;
|
||||||
import static javax.mail.Folder.READ_WRITE;
|
import static javax.mail.Folder.READ_WRITE;
|
||||||
|
|
||||||
class Core {
|
class Core {
|
||||||
private static final int MAX_NOTIFICATION_COUNT = 25; // per group
|
private static final int MAX_NOTIFICATION_COUNT = 10; // per group
|
||||||
private static final long AFTER_SEND_DELAY = 20 * 1000L; // milliseconds
|
private static final long AFTER_SEND_DELAY = 20 * 1000L; // milliseconds
|
||||||
private static final int SYNC_CHUNCK_SIZE = 200;
|
private static final int SYNC_CHUNCK_SIZE = 200;
|
||||||
private static final int SYNC_BATCH_SIZE = 20;
|
private static final int SYNC_BATCH_SIZE = 20;
|
||||||
|
|
|
@ -476,7 +476,7 @@ public interface DaoMessage {
|
||||||
" AND folder.notify" +
|
" AND folder.notify" +
|
||||||
" AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" +
|
" AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" +
|
||||||
" AND (notifying <> 0 OR NOT (message.ui_seen OR message.ui_hide))" +
|
" AND (notifying <> 0 OR NOT (message.ui_seen OR message.ui_hide))" +
|
||||||
" ORDER BY message.received")
|
" ORDER BY message.received DESC")
|
||||||
LiveData<List<TupleMessageEx>> liveUnseenNotify();
|
LiveData<List<TupleMessageEx>> liveUnseenNotify();
|
||||||
|
|
||||||
@Transaction
|
@Transaction
|
||||||
|
|
Loading…
Reference in a new issue