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

@ -102,6 +102,8 @@ export async function runReadOrViewSyncJob({
return;
}
await window.ConversationController.load();
const ourConversation =
window.ConversationController.getOurConversationOrThrow();
const sendOptions = await getSendOptions(ourConversation.attributes, {