mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +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;
|
||||
|
||||
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 int SYNC_CHUNCK_SIZE = 200;
|
||||
private static final int SYNC_BATCH_SIZE = 20;
|
||||
|
|
|
@ -476,7 +476,7 @@ public interface DaoMessage {
|
|||
" AND folder.notify" +
|
||||
" 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))" +
|
||||
" ORDER BY message.received")
|
||||
" ORDER BY message.received DESC")
|
||||
LiveData<List<TupleMessageEx>> liveUnseenNotify();
|
||||
|
||||
@Transaction
|
||||
|
|
Loading…
Reference in a new issue