@social-mail/social-mail-client 1.8.371 → 1.8.372

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16665,11 +16665,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
16665
16665
  }
16666
16666
  logout() {
16667
16667
  return __awaiter(this, void 0, void 0, function* () {
16668
+ var _a, _b;
16668
16669
  const session = yield this.entityService.query(LoginSession, "currentUser").firstOrDefault();
16669
16670
  session.invalid = true;
16670
16671
  const cloner = this.entityService.cloner(session);
16671
16672
  yield this.entityService.save(cloner.copy);
16672
16673
  yield sleep(1000);
16674
+ if ((_b = (_a = SocialMailApp.config) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.login) {
16675
+ location.href = SocialMailApp.config.links.home;
16676
+ return;
16677
+ }
16673
16678
  location.reload();
16674
16679
  });
16675
16680
  }