upgradeSchema: New keepOnDisk option, used for edits

This commit is contained in:
Scott Nonnenberg 2024-01-08 16:31:24 -08:00
parent 661727c290
commit d1aa47544b
4 changed files with 27 additions and 17 deletions

View file

@ -134,7 +134,10 @@ export async function handleEditMessage(
}
const upgradedEditedMessageData =
await window.Signal.Migrations.upgradeMessageSchema(editAttributes.message);
await window.Signal.Migrations.upgradeMessageSchema(
editAttributes.message,
{ keepOnDisk: true }
);
// Copies over the attachments from the main message if they're the same
// and they have already been downloaded.