@banta/sdk 4.0.19 → 4.0.20

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.
@@ -9627,8 +9627,12 @@
9627
9627
  });
9628
9628
  Object.defineProperty(CommentFieldComponent.prototype, "sendButtonEnabled", {
9629
9629
  get: function () {
9630
- return this.canComment
9631
- && this.isValidMessage
9630
+ if (!this.canComment) {
9631
+ // In this case, we want to enable the button because we want to be able to
9632
+ // send the permissionDenied message up to the host.
9633
+ return true;
9634
+ }
9635
+ return this.isValidMessage
9632
9636
  && !this.hasPendingAttachments
9633
9637
  && !this.sending;
9634
9638
  },
@@ -9790,7 +9794,7 @@
9790
9794
  case 1:
9791
9795
  _b.trys.push([1, , 7, 8]);
9792
9796
  text = (this.text || '').trim();
9793
- if (!this.isValidMessage)
9797
+ if (this.canComment && !this.isValidMessage)
9794
9798
  return [2 /*return*/];
9795
9799
  message = {
9796
9800
  user: this.user,