mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Remove window.Signal.Migrations
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
getLocalAttachmentUrl,
|
||||
AttachmentDisposition,
|
||||
} from './getLocalAttachmentUrl.js';
|
||||
import { writeNewDraftData } from './migrations.js';
|
||||
import { createLogger } from '../logging/log.js';
|
||||
|
||||
const { omit } = lodash;
|
||||
@@ -27,14 +28,10 @@ export async function writeDraftAttachment(
|
||||
throw new Error('writeDraftAttachment: Cannot write pending attachment');
|
||||
}
|
||||
|
||||
const local = await window.Signal.Migrations.writeNewDraftData(
|
||||
attachment.data
|
||||
);
|
||||
const local = await writeNewDraftData(attachment.data);
|
||||
|
||||
const localScreenshot = attachment.screenshotData
|
||||
? await window.Signal.Migrations.writeNewDraftData(
|
||||
attachment.screenshotData
|
||||
)
|
||||
? await writeNewDraftData(attachment.screenshotData)
|
||||
: undefined;
|
||||
|
||||
let dimensions: { width?: number; height?: number } = {};
|
||||
|
||||
Reference in New Issue
Block a user