Enables ContextIsolation

This commit is contained in:
Josh Perez 2023-01-12 19:24:59 -05:00 committed by GitHub
parent 4bbf5eb5d4
commit 9374832ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 1009 additions and 1073 deletions

View file

@ -11,6 +11,7 @@ import { isMessageUnread } from '../util/isMessageUnread';
import { notificationService } from '../services/notifications';
import * as log from '../logging/log';
import * as Errors from '../types/errors';
import { StartupQueue } from '../util/StartupQueue';
export type ReadSyncAttributesType = {
senderId: string;
@ -119,10 +120,10 @@ export class ReadSyncs extends Collection {
void message.getConversation()?.onReadMessage(message, readAt);
};
if (window.startupProcessingQueue) {
if (StartupQueue.isReady()) {
const conversation = message.getConversation();
if (conversation) {
window.startupProcessingQueue.add(
StartupQueue.add(
conversation.get('id'),
message.get('sent_at'),
updateConversation