Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): incorrect asset dimensions in search (#26725)

Thomas6012d22d9883
diff --git a/mobile/lib/domain/services/search.service.dart b/mobile/lib/domain/services/search.service.dart
index a3f935c492..004ad06b1b 100644
--- a/mobile/lib/domain/services/search.service.dart
+++ b/mobile/lib/domain/services/search.service.dart
@@ -70,13 +70,14 @@ extension on AssetResponseDto {
_ => AssetVisibility.timeline,
},
durationInSeconds: duration.toDuration()?.inSeconds ?? 0,
- height: exifInfo?.exifImageHeight?.toInt(),
- width: exifInfo?.exifImageWidth?.toInt(),
+ height: height?.toInt(),
+ width: width?.toInt(),
isFavorite: isFavorite,
livePhotoVideoId: livePhotoVideoId,
thumbHash: thumbhash,
localId: null,
type: type.toAssetType(),
+ stackId: stack?.id,
isEdited: isEdited,
);
}