mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Fixed problem of not disconnecting Websocket when logging out
This commit is contained in:
@@ -51,7 +51,7 @@ class WebsocketNotifier extends StateNotifier<WebscoketState> {
|
||||
final Ref ref;
|
||||
|
||||
connect() {
|
||||
var authenticationState = ref.watch(authenticationProvider);
|
||||
var authenticationState = ref.read(authenticationProvider);
|
||||
|
||||
if (authenticationState.isAuthenticated) {
|
||||
var accessToken = Hive.box(userInfoBox).get(accessTokenKey);
|
||||
|
||||
Reference in New Issue
Block a user