mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix(mobile): update cast service for API changes
This commit is contained in:
parent
62165069aa
commit
f0da182e37
2 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ class CastNotifier extends StateNotifier<CastManagerState> {
|
|||
}
|
||||
|
||||
void loadMedia(RemoteAsset asset, bool reload) {
|
||||
_castService.loadMedia(asset, reload);
|
||||
unawaited(_castService.loadMedia(asset, reload));
|
||||
}
|
||||
|
||||
Future<void> connect(dynamic device) async {
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ class CastService {
|
|||
return bufferedExpiration.isAfter(DateTime.now());
|
||||
}
|
||||
|
||||
void loadMedia(RemoteAsset asset, bool reload) async {
|
||||
Future<void> loadMedia(RemoteAsset asset, bool reload) async {
|
||||
if (!isConnected) {
|
||||
return;
|
||||
} else if (asset.id == currentAssetId && !reload) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue