websocket upload notification - closed ()

* Render when a new asset is uploaded from WebSocket notification
* Update Readme
This commit is contained in:
Alex 2022-02-14 10:40:41 -06:00 committed by GitHub
parent 7cc7fc0a0c
commit c234c95880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 11037 additions and 69 deletions
mobile/lib/modules/home/ui

View file

@ -5,6 +5,7 @@ import 'package:immich_mobile/modules/home/providers/asset.provider.dart';
import 'package:immich_mobile/modules/login/models/authentication_state.model.dart';
import 'package:immich_mobile/modules/login/providers/authentication.provider.dart';
import 'package:immich_mobile/shared/providers/backup.provider.dart';
import 'package:immich_mobile/shared/providers/websocket.provider.dart';
class ProfileDrawer extends ConsumerWidget {
const ProfileDrawer({Key? key}) : super(key: key);
@ -60,6 +61,7 @@ class ProfileDrawer extends ConsumerWidget {
if (res) {
ref.watch(backupProvider.notifier).cancelBackup();
ref.watch(assetProvider.notifier).clearAllAsset();
ref.watch(websocketProvider.notifier).disconnect();
AutoRouter.of(context).popUntilRoot();
}
},