Fix uncaught error in copyStickerToAttachments
This commit is contained in:
parent
0f9242670c
commit
0d5ef38e52
3 changed files with 15 additions and 4 deletions
|
@ -769,7 +769,9 @@ export async function copyStickerToAttachments(
|
|||
size,
|
||||
} = await window.Signal.Migrations.copyIntoAttachmentsDirectory(absolutePath);
|
||||
|
||||
const data = window.Signal.Migrations.loadAttachmentData(path);
|
||||
const { data } = await window.Signal.Migrations.loadAttachmentData({
|
||||
path,
|
||||
});
|
||||
|
||||
let contentType: MIMEType;
|
||||
const sniffedMimeType = sniffImageMimeType(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue