mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 14:39:25 +03:00
fix(mobile): restrict trashed asset migration to Android platform (#26726)
* fix(migration): restrict trashed asset migration to Android platform * playbackStyle migration add different log depending on platform
This commit is contained in:
@@ -420,6 +420,7 @@ Future<void> _populateLocalAssetPlaybackStyle(Drift db) async {
|
||||
});
|
||||
}
|
||||
|
||||
if (Platform.isAndroid) {
|
||||
final trashedAssetMap = await nativeApi.getTrashedAssets();
|
||||
for (final entry in trashedAssetMap.cast<String, List<Object?>>().entries) {
|
||||
final assets = entry.value.cast<PlatformAsset>();
|
||||
@@ -433,8 +434,10 @@ Future<void> _populateLocalAssetPlaybackStyle(Drift db) async {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
dPrint(() => "[MIGRATION] Successfully populated playbackStyle for local and trashed assets");
|
||||
} else {
|
||||
dPrint(() => "[MIGRATION] Successfully populated playbackStyle for local assets");
|
||||
}
|
||||
} catch (error) {
|
||||
dPrint(() => "[MIGRATION] Error while populating playbackStyle: $error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user