forked from Ivasoft/mattermost-mobile
[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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user