@social-mail/social-mail-client 1.9.159 → 1.9.161

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.
@@ -42986,7 +42986,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
42986
42986
  }
42987
42987
  onArchiveContact(mc) {
42988
42988
  return __awaiter(this, void 0, void 0, function* () {
42989
- var _a;
42989
+ var _a, _b;
42990
42990
  const r = yield AskArchiveConfirmationPopup.showModal({
42991
42991
  parameters: {},
42992
42992
  modal: true
@@ -43001,7 +43001,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
43001
43001
  yield this.entityService.save(mc, c => c);
43002
43002
  const i = this.threadsRepeater.items.indexOf(mc);
43003
43003
  this.threadsRepeater.items.removeAt(i);
43004
- this.threadsRepeater.selectedItem = (_a = this.threadsRepeater.items[i]) !== null && _a !== void 0 ? _a : this.threadsRepeater.items[i - 1];
43004
+ const selectedThread = this.selectedThread = (_b = (_a = this.threadsRepeater.items[i]) !== null && _a !== void 0 ? _a : this.threadsRepeater.items[i - 1]) !== null && _b !== void 0 ? _b : this.selectedThread;
43005
+ this.threadsRepeater.selectedItem = selectedThread;
43005
43006
  this.folder.count--;
43006
43007
  this.folder.archivedCount++;
43007
43008
  this.folderVersion++;
@@ -43009,13 +43010,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
43009
43010
  }
43010
43011
  unArchiveContact(mc) {
43011
43012
  return __awaiter(this, void 0, void 0, function* () {
43012
- var _a;
43013
+ var _a, _b;
43013
43014
  mc.archived = false;
43014
43015
  mc.alwaysArchived = false;
43015
43016
  yield this.entityService.save(mc, c => c);
43016
43017
  const i = this.threadsRepeater.items.indexOf(mc);
43017
43018
  this.threadsRepeater.items.removeAt(i);
43018
- this.threadsRepeater.selectedItem = (_a = this.threadsRepeater.items[i]) !== null && _a !== void 0 ? _a : this.threadsRepeater.items[i - 1];
43019
+ const selectedThread = this.selectedThread = (_b = (_a = this.threadsRepeater.items[i]) !== null && _a !== void 0 ? _a : this.threadsRepeater.items[i - 1]) !== null && _b !== void 0 ? _b : this.selectedThread;
43020
+ this.threadsRepeater.selectedItem = selectedThread;
43019
43021
  this.folder.archivedCount--;
43020
43022
  this.folder.count++;
43021
43023
  this.folderVersion++;