mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Keep volatile record of notifications
This commit is contained in:
@@ -168,6 +168,7 @@ public class ServiceSynchronize extends ServiceBase {
|
||||
});
|
||||
|
||||
db.message().liveUnseenNotify().observe(cowner, new Observer<List<TupleMessageEx>>() {
|
||||
private Map<String, List<Long>> groupNotifying = new HashMap<>();
|
||||
private ExecutorService executor =
|
||||
Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory);
|
||||
|
||||
@@ -177,7 +178,7 @@ public class ServiceSynchronize extends ServiceBase {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
Core.notifyMessages(ServiceSynchronize.this, messages);
|
||||
Core.notifyMessages(ServiceSynchronize.this, messages, groupNotifying);
|
||||
} catch (SecurityException ex) {
|
||||
Log.w(ex);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
|
||||
|
||||
Reference in New Issue
Block a user