Fixed problem of not disconnecting Websocket when logging out

This commit is contained in:
Alex Tran 2022-02-14 14:42:06 -06:00
commit 75b1ed08b4
2 changed files with 46 additions and 47 deletions
mobile/lib/shared/providers

View file

@ -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);