Break large read receipt messages into chunks.

This commit is contained in:
Greyson Parrelli
2020-11-18 14:19:28 -05:00
committed by GitHub
parent f59e10d82c
commit 95468c85a8
2 changed files with 35 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ public class MarkReadReceiver extends BroadcastReceiver {
Stream.of(idMapForThread).forEach(entry -> {
List<Long> timestamps = Stream.of(entry.getValue()).map(SyncMessageId::getTimetamp).toList();
ApplicationDependencies.getJobManager().add(new SendReadReceiptJob(threadToInfoEntry.getKey(), entry.getKey(), timestamps));
SendReadReceiptJob.enqueue(threadToInfoEntry.getKey(), entry.getKey(), timestamps);
});
});
}