From 4f466944dd7c46d1864d4b80d312f8512eaa73a0 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 13 Jun 2024 12:08:01 +0200 Subject: [PATCH] MOBILE-4470 mod_data: Fix offline images not seen --- src/addons/mod/data/fields/picture/component/picture.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/mod/data/fields/picture/component/picture.ts b/src/addons/mod/data/fields/picture/component/picture.ts index 804b4b9f5..ef9f58e50 100644 --- a/src/addons/mod/data/fields/picture/component/picture.ts +++ b/src/addons/mod/data/fields/picture/component/picture.ts @@ -130,7 +130,7 @@ export class AddonModDataFieldPictureComponent extends AddonModDataFieldPluginBa setTimeout(() => { if (this.image) { this.imageUrl = 'name' in this.image - ? CoreFile.getFileEntryURL(this.image) // Is Offline. + ? CoreFile.convertFileSrc(CoreFile.getFileEntryURL(this.image)) // Is Offline. : CoreFileHelper.getFileUrl(this.image); } }, 1);