mirror of
https://github.com/immich-app/immich.git
synced 2025-07-19 22:44:24 +02:00
Fixed problem of not disconnecting Websocket when logging out
This commit is contained in:
parent
c234c95880
commit
75b1ed08b4
2 changed files with 46 additions and 47 deletions
mobile/lib/shared/providers
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue