@social-mail/social-mail-client 1.2.731 → 1.2.732

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.
@@ -43497,16 +43497,28 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
43497
43497
  });
43498
43498
  }
43499
43499
  addMailbox(mb) {
43500
- this.add(this.mailboxes, mb);
43500
+ if (this.mailboxes.some(m => m.mailboxID === mb.mailboxID)) {
43501
+ return;
43502
+ }
43503
+ this.mailboxes.insert(0, mb);
43501
43504
  }
43502
43505
  addWebSite(mb) {
43503
- this.add(this.websites, mb);
43506
+ if (this.websites.some(m => mb.folderID === mb.folderID)) {
43507
+ return;
43508
+ }
43509
+ this.websites.insert(0, mb);
43504
43510
  }
43505
43511
  addDrives(mb) {
43506
- this.add(this.drives, mb);
43512
+ if (this.drives.some(m => m.appFileID === mb.appFileID)) {
43513
+ return;
43514
+ }
43515
+ this.drives.insert(0, mb);
43507
43516
  }
43508
43517
  addChannel(mb) {
43509
- this.add(this.mailboxes, mb);
43518
+ if (this.channels.some(m => m.mailboxID === mb.mailboxID)) {
43519
+ return;
43520
+ }
43521
+ this.channels.insert(0, mb);
43510
43522
  }
43511
43523
  add(list, ...items) {
43512
43524
  for (const item of items) {
@@ -43517,8 +43529,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
43517
43529
  if (list.some(m => keys.every(k => m[k.name] === item[k.name]))) {
43518
43530
  continue;
43519
43531
  }
43520
- item[canMenuBeClosed] = true;
43521
- list.insert(0, item);
43532
+ list.push(item);
43522
43533
  }
43523
43534
  }
43524
43535
  };