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
package/dist/esm/index.mjs
CHANGED
|
@@ -7333,7 +7333,10 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
|
|
|
7333
7333
|
return !!(!this.attachmentManager.uploadsInProgressCount && (!this.textComposer.textIsEmpty || this.attachmentManager.successfulUploadsCount > 0) || this.pollId || !!this.locationComposer.validLocation);
|
|
7334
7334
|
}
|
|
7335
7335
|
get compositionIsEmpty() {
|
|
7336
|
-
return !this.quotedMessage && this.
|
|
7336
|
+
return !this.quotedMessage && this.contentIsEmpty;
|
|
7337
|
+
}
|
|
7338
|
+
get contentIsEmpty() {
|
|
7339
|
+
return this.textComposer.textIsEmpty && !this.attachmentManager.attachments.length && !this.pollId && !this.locationComposer.validLocation;
|
|
7337
7340
|
}
|
|
7338
7341
|
get lastChangeOriginIsLocal() {
|
|
7339
7342
|
const initiatedWithoutDraft = this.lastChange.draftUpdate === null;
|
|
@@ -14924,7 +14927,7 @@ var StreamChat = class _StreamChat {
|
|
|
14924
14927
|
if (this.userAgent) {
|
|
14925
14928
|
return this.userAgent;
|
|
14926
14929
|
}
|
|
14927
|
-
const version = "9.
|
|
14930
|
+
const version = "9.37.0";
|
|
14928
14931
|
const clientBundle = "browser-esm";
|
|
14929
14932
|
let userAgentString = "";
|
|
14930
14933
|
if (this.sdkIdentifier) {
|