Show most recent 10 new message notifications

pull/184/head
M66B 5 years ago
parent bce427a510
commit e9c75cab59

@ -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…
Cancel
Save