mirror of
https://github.com/immich-app/immich.git
synced 2026-05-23 08:02:29 -04:00
docs(mobile): clarify view intent fallback asset TODO
This commit is contained in:
@@ -259,7 +259,9 @@ class ViewIntentAssetResolver {
|
||||
LocalAsset _toViewIntentAsset(ViewIntentPayload attachment, String? checksum) {
|
||||
final now = DateTime.now();
|
||||
return LocalAsset(
|
||||
// todo Temp solution, need to provide FileBackedAsset extends BaseAsset for cover this case in right way
|
||||
// TODO(Ombodi): Introduce a file-backed BaseAsset for path-only view intents.
|
||||
// The viewer currently expects a BaseAsset, so this temporary LocalAsset
|
||||
// adapts an unmanaged file into the existing timeline/viewer pipeline.
|
||||
id: attachment.localAssetId ?? '-${attachment.path!.hashCode.abs()}',
|
||||
name: attachment.fileName,
|
||||
checksum: checksum,
|
||||
|
||||
Reference in New Issue
Block a user