docs(mobile): clarify view intent fallback asset TODO

This commit is contained in:
Peter Ombodi
2026-04-27 18:41:55 +03:00
parent 6b291c469e
commit 561fe231ac
@@ -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,