mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 03:43:27 +01:00
Remove window.Signal.Migrations
This commit is contained in:
@@ -8,6 +8,7 @@ import type { MessageAttributesType } from '../../model-types.js';
|
||||
import { DataReader, DataWriter } from '../../sql/Client.js';
|
||||
import { generateAci } from '../../types/ServiceId.js';
|
||||
import { postSaveUpdates } from '../../util/cleanup.js';
|
||||
import { upgradeMessageSchema } from '../../util/migrations.js';
|
||||
import { itemStorage } from '../../textsecure/Storage.js';
|
||||
|
||||
function composeMessage(timestamp: number): MessageAttributesType {
|
||||
@@ -51,7 +52,7 @@ describe('utils/migrateMessageData', async () => {
|
||||
if (message.id === CANNOT_UPGRADE_MESSAGE_ID) {
|
||||
throw new Error('upgrade failed');
|
||||
}
|
||||
return window.Signal.Migrations.upgradeMessageSchema(message, ...rest);
|
||||
return upgradeMessageSchema(message, ...rest);
|
||||
},
|
||||
getMessagesNeedingUpgrade: async (...args) => {
|
||||
const messagesToUpgrade = await DataReader.getMessagesNeedingUpgrade(
|
||||
|
||||
Reference in New Issue
Block a user