Chunk read sync messages.

Same thing we do with read receipts we send to other people. Just missed
this part.
This commit is contained in:
Greyson Parrelli
2020-11-30 11:36:01 -05:00
parent cce8cdc7bf
commit 105862b524
3 changed files with 24 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ public class MarkReadReceiver extends BroadcastReceiver {
scheduleDeletion(context, smsExpirationInfo, mmsExpirationInfo);
ApplicationDependencies.getJobManager().add(new MultiDeviceReadUpdateJob(syncMessageIds));
MultiDeviceReadUpdateJob.enqueue(syncMessageIds);
Map<Long, List<MarkedMessageInfo>> threadToInfo = Stream.of(markedReadMessages)
.collect(Collectors.groupingBy(MarkedMessageInfo::getThreadId));