Jelajahi Sumber

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

Fixes #451
IndianaDschones 7 tahun lalu
induk
melakukan
c27a5d8a35
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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
         });