Wait for ConversationController load in receipt and sync jobs

This commit is contained in:
Evan Hahn 2021-12-16 11:45:56 -06:00 committed by GitHub
parent 29c3b8af89
commit ed96e603ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 0 deletions

View file

@ -79,6 +79,8 @@ export async function sendReceipts({
new Map()
);
await window.ConversationController.load();
await Promise.all(
map(receiptsBySenderId, async ([senderId, receiptsForSender]) => {
const sender = window.ConversationController.get(senderId);