Remove window.getAccountManager

This commit is contained in:
Fedor Indutny
2025-10-10 14:38:51 -07:00
committed by GitHub
parent 9a8f8ffe5f
commit bfb390e644
14 changed files with 90 additions and 92 deletions

View File

@@ -14,6 +14,10 @@ import { ReadStatus } from '../messages/MessageReadStatus.js';
import { DataWriter } from '../sql/Client.js';
import { drop } from './drop.js';
import { upgradeMessageSchema } from './migrations.js';
import {
deliveryReceiptQueue,
deliveryReceiptBatcher,
} from './deliveryReceipt.js';
import {
cacheAttachmentBySignature,
getCachedAttachmentBySignature,
@@ -315,8 +319,8 @@ export async function handleEditMessage(
// processing incoming messages to start sending outgoing delivery receipts.
// The queue can be paused easily.
drop(
window.Whisper.deliveryReceiptQueue.add(() => {
window.Whisper.deliveryReceiptBatcher.add({
deliveryReceiptQueue.add(() => {
deliveryReceiptBatcher.add({
messageId: mainMessage.id,
conversationId: editAttributes.conversationId,
senderE164: editAttributes.message.source,