Transient list of existing notifications

This commit is contained in:
M66B
2019-05-18 21:25:46 +02:00
parent 5b63787742
commit b1d217ed46
2 changed files with 7 additions and 25 deletions

View File

@@ -149,9 +149,11 @@ public class ServiceSynchronize extends LifecycleService {
});
db.message().liveUnseenNotify().observe(cowner, new Observer<List<TupleMessageEx>>() {
private Map<String, List<Long>> notifying = new HashMap<>();
@Override
public void onChanged(List<TupleMessageEx> messages) {
Core.notifyMessages(ServiceSynchronize.this, messages);
Core.notifyMessages(ServiceSynchronize.this, notifying, messages);
}
});