stream-chat 9.36.2 → 9.37.0
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.
- package/dist/cjs/index.browser.js +5 -2
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +5 -2
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +5 -2
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/messageComposer/messageComposer.d.ts +1 -0
- package/package.json +1 -1
- package/src/messageComposer/messageComposer.ts +4 -1
|
@@ -7522,7 +7522,10 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
|
|
|
7522
7522
|
return !!(!this.attachmentManager.uploadsInProgressCount && (!this.textComposer.textIsEmpty || this.attachmentManager.successfulUploadsCount > 0) || this.pollId || !!this.locationComposer.validLocation);
|
|
7523
7523
|
}
|
|
7524
7524
|
get compositionIsEmpty() {
|
|
7525
|
-
return !this.quotedMessage && this.
|
|
7525
|
+
return !this.quotedMessage && this.contentIsEmpty;
|
|
7526
|
+
}
|
|
7527
|
+
get contentIsEmpty() {
|
|
7528
|
+
return this.textComposer.textIsEmpty && !this.attachmentManager.attachments.length && !this.pollId && !this.locationComposer.validLocation;
|
|
7526
7529
|
}
|
|
7527
7530
|
get lastChangeOriginIsLocal() {
|
|
7528
7531
|
const initiatedWithoutDraft = this.lastChange.draftUpdate === null;
|
|
@@ -15113,7 +15116,7 @@ var StreamChat = class _StreamChat {
|
|
|
15113
15116
|
if (this.userAgent) {
|
|
15114
15117
|
return this.userAgent;
|
|
15115
15118
|
}
|
|
15116
|
-
const version = "9.
|
|
15119
|
+
const version = "9.37.0";
|
|
15117
15120
|
const clientBundle = "browser-cjs";
|
|
15118
15121
|
let userAgentString = "";
|
|
15119
15122
|
if (this.sdkIdentifier) {
|