@banta/sdk 4.5.2 → 4.5.3

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.
@@ -9655,6 +9655,7 @@
9655
9655
  });
9656
9656
  };
9657
9657
  BantaCommentsComponent.prototype.deleteMessage = function (message) {
9658
+ var _a;
9658
9659
  return __awaiter(this, void 0, void 0, function () {
9659
9660
  var e_6;
9660
9661
  return __generator(this, function (_d) {
@@ -9674,6 +9675,8 @@
9674
9675
  return [4 /*yield*/, this.source.deleteMessage(message.id)];
9675
9676
  case 4:
9676
9677
  _d.sent();
9678
+ if (((_a = this.selectedMessage) === null || _a === void 0 ? void 0 : _a.id) === message.id)
9679
+ this.unselectMessage();
9677
9680
  return [3 /*break*/, 6];
9678
9681
  case 5:
9679
9682
  e_6 = _d.sent();