Explorar o código

Reset receiver active state on session logout/delete (#469)

Fixes #451
IndianaDschones %!s(int64=7) %!d(string=hai) anos
pai
achega
c27a5d8a35
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/partials/messenger.ts

+ 2 - 0
src/partials/messenger.ts

@@ -918,6 +918,7 @@ class NavigationController {
             const resetPush = true;
             const redirect = true;
             this.webClientService.stop(true, deleteStoredData, resetPush, redirect);
+            this.receiverService.setActive(undefined);
         }, () => {
             // do nothing
         });
@@ -938,6 +939,7 @@ class NavigationController {
             const resetPush = true;
             const redirect = true;
             this.webClientService.stop(true, deleteStoredData, resetPush, redirect);
+            this.receiverService.setActive(undefined);
         }, () => {
             // do nothing
         });