stream-chat 9.19.0 → 9.19.1
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.cjs +9 -4
- package/dist/cjs/index.browser.cjs.map +2 -2
- package/dist/cjs/index.node.cjs +9 -4
- package/dist/cjs/index.node.cjs.map +2 -2
- package/dist/esm/index.js +9 -4
- package/dist/esm/index.js.map +2 -2
- package/dist/types/messageComposer/messageComposer.d.ts +2 -2
- package/package.json +1 -1
- package/src/channel.ts +7 -0
- package/src/messageComposer/messageComposer.ts +5 -5
|
@@ -9200,9 +9200,6 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
|
|
|
9200
9200
|
get config() {
|
|
9201
9201
|
return this.configState.getLatestValue();
|
|
9202
9202
|
}
|
|
9203
|
-
updateConfig(config) {
|
|
9204
|
-
this.configState.partialNext(mergeWith(this.config, config));
|
|
9205
|
-
}
|
|
9206
9203
|
get contextType() {
|
|
9207
9204
|
return _MessageComposer.evaluateContextType(this.compositionContext);
|
|
9208
9205
|
}
|
|
@@ -9261,6 +9258,9 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
|
|
|
9261
9258
|
const draftWasChanged = !!this.lastChange.draftUpdate && this.lastChange.draftUpdate < this.lastChange.stateUpdate;
|
|
9262
9259
|
return editedMessageWasUpdated || draftWasChanged || composingMessageFromScratch;
|
|
9263
9260
|
}
|
|
9261
|
+
updateConfig(config) {
|
|
9262
|
+
this.configState.partialNext(mergeWith(this.config, config));
|
|
9263
|
+
}
|
|
9264
9264
|
logStateUpdateTimestamp() {
|
|
9265
9265
|
this.editingAuditState.partialNext({
|
|
9266
9266
|
lastChange: { ...this.lastChange, stateUpdate: (/* @__PURE__ */ new Date()).getTime() }
|
|
@@ -10438,6 +10438,11 @@ var Channel = class {
|
|
|
10438
10438
|
}
|
|
10439
10439
|
}
|
|
10440
10440
|
this.getClient()._addChannelConfig(state.channel);
|
|
10441
|
+
if (typeof state.channel.config?.shared_locations !== "undefined") {
|
|
10442
|
+
this.messageComposer.updateConfig({
|
|
10443
|
+
location: { enabled: state.channel.config.shared_locations }
|
|
10444
|
+
});
|
|
10445
|
+
}
|
|
10441
10446
|
const { messageSet } = this._initializeState(state, messageSetToAddToIfDoesNotExist);
|
|
10442
10447
|
messageSet.pagination = {
|
|
10443
10448
|
...messageSet.pagination,
|
|
@@ -16220,7 +16225,7 @@ var StreamChat = class _StreamChat {
|
|
|
16220
16225
|
if (this.userAgent) {
|
|
16221
16226
|
return this.userAgent;
|
|
16222
16227
|
}
|
|
16223
|
-
const version = "9.19.
|
|
16228
|
+
const version = "9.19.1";
|
|
16224
16229
|
const clientBundle = "browser-cjs";
|
|
16225
16230
|
let userAgentString = "";
|
|
16226
16231
|
if (this.sdkIdentifier) {
|