@social-mail/social-mail-client 1.9.41 → 1.9.42

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.
@@ -16760,14 +16760,14 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
16760
16760
  }
16761
16761
  logout() {
16762
16762
  return __awaiter(this, void 0, void 0, function* () {
16763
- var _a, _b;
16763
+ var _a, _b, _c;
16764
16764
  const session = yield this.entityService.query(LoginSession, "currentUser").firstOrDefault();
16765
16765
  session.invalid = true;
16766
16766
  const cloner = this.entityService.cloner(session);
16767
16767
  yield this.entityService.save(cloner.copy);
16768
16768
  yield sleep(1000);
16769
16769
  if ((_b = (_a = SocialMailApp.config) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.login) {
16770
- location.href = SocialMailApp.config.links.home;
16770
+ location.href = (_c = SocialMailApp.config.links.logout) !== null && _c !== void 0 ? _c : SocialMailApp.config.links.home;
16771
16771
  return;
16772
16772
  }
16773
16773
  location.reload();