DOE for stories

This commit is contained in:
Josh Perez 2022-07-13 19:09:18 -04:00 committed by GitHub
parent d7307934bc
commit 5639c1adea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 381 additions and 15 deletions

View file

@ -154,6 +154,7 @@ import { conversationJobQueue } from './jobs/conversationJobQueue';
import { SeenStatus } from './MessageSeenStatus';
import MessageSender from './textsecure/SendMessage';
import type AccountManager from './textsecure/AccountManager';
import { onStoryRecipientUpdate } from './util/onStoryRecipientUpdate';
import { validateConversation } from './util/validateConversation';
const MAX_ATTACHMENT_DOWNLOAD_AGE = 3600 * 72 * 1000;
@ -398,6 +399,10 @@ export async function startApp(): Promise<void> {
'pniIdentity',
queuedEventListener(onPNIIdentitySync)
);
messageReceiver.addEventListener(
'storyRecipientUpdate',
queuedEventListener(onStoryRecipientUpdate, false)
);
});
ourProfileKeyService.initialize(window.storage);