fix(files_versions): Update unencrypted_size during rollback

This prevent restored version of encrypted files from having a wrong reported size. This was blocking download.

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2025-01-21 18:27:38 +01:00 committed by Louis
parent 5336c92ca5
commit c87db7a960

View file

@ -378,7 +378,8 @@ class Storage {
$fileInfo->getId(), [
'encrypted' => $oldVersion,
'encryptedVersion' => $oldVersion,
'size' => $oldFileInfo->getSize()
'size' => $oldFileInfo->getData()['size'],
'unencrypted_size' => $oldFileInfo->getData()['unencrypted_size'],
]
);