[Gekidou] Use localPath when available (#6058)

* Use localPath when available

* Revert changes to replace space for dash in the filename

* Rename other action to external and always call onDownloadSuccess if defined

* add missing localization strings
This commit is contained in:
Elias Nahum
2022-03-17 08:58:49 -03:00
committed by GitHub
parent ff952ced2a
commit 088aa193ab
14 changed files with 156 additions and 40 deletions

View File

@@ -112,7 +112,7 @@ export const transformFileRecord = ({action, database, value}: TransformerArgs):
file.width = raw?.width || record?.width || 0;
file.height = raw?.height || record?.height || 0;
file.imageThumbnail = raw?.mini_preview || record?.imageThumbnail || '';
file.localPath = raw?.localPath ?? '';
file.localPath = raw?.localPath || record?.localPath || '';
};
return prepareBaseRecord({