Copy over another hack

This commit is contained in:
Manav Rathi
2024-08-06 15:27:05 +05:30
parent d30773e68a
commit 962a260e4b
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ export function RenderCreationTime({
/* TODO(MR): Exif */
// eslint-disable-next-line no-constant-condition
if (true) {
if (false) {
const updatedFile = await changeFileCreationTime(
file,
editedTime,
@@ -55,7 +55,7 @@ export function RenderCreationTime({
updateExistingFilePubMetadata(file, updatedFile);
}
// eslint-disable-next-line no-constant-condition
if (false) {
if (true) {
const cryptoWorker =
await ComlinkCryptoWorker.getInstance();
await updateRemotePublicMagicMetadata(

View File

@@ -325,6 +325,7 @@ export const updateRemotePublicMagicMetadata = async (
// If the above is hacky, this is even worse. TODO, or at least move to a
// more visible place.
enteFile.pubMagicMetadata.version = enteFile.pubMagicMetadata.version + 1;
enteFile.pubMagicMetadata.data = updatedMetadata;
mergeMetadata1(enteFile);
};