Enables ContextIsolation
This commit is contained in:
@@ -266,7 +266,9 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {
|
||||
|
||||
// We want the above call to not be delayed when testing with
|
||||
// CI.
|
||||
window.CI ? deleteSentProtoBatcher.flushAndWait() : Promise.resolve(),
|
||||
window.Signal.CI
|
||||
? deleteSentProtoBatcher.flushAndWait()
|
||||
: Promise.resolve(),
|
||||
]);
|
||||
} else {
|
||||
log.warn(
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user