Remove window.Signal.Migrations

This commit is contained in:
Fedor Indutny
2025-10-10 13:37:38 -07:00
committed by GitHub
parent 17cb59b64c
commit 40c31e138b
62 changed files with 550 additions and 799 deletions

View File

@@ -13,6 +13,7 @@ import { createLogger } from '../logging/log.js';
import { ReadStatus } from '../messages/MessageReadStatus.js';
import { DataWriter } from '../sql/Client.js';
import { drop } from './drop.js';
import { upgradeMessageSchema } from './migrations.js';
import {
cacheAttachmentBySignature,
getCachedAttachmentBySignature,
@@ -129,8 +130,9 @@ export async function handleEditMessage(
return;
}
const upgradedEditedMessageData =
await window.Signal.Migrations.upgradeMessageSchema(editAttributes.message);
const upgradedEditedMessageData = await upgradeMessageSchema(
editAttributes.message
);
// Copies over the attachments from the main message if they're the same
// and they have already been downloaded.