stream-chat-angular 4.23.1 → 4.23.2
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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +9 -6
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +9 -6
- package/fesm2015/stream-chat-angular.js +9 -6
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/assets/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.23.
|
|
1
|
+
export declare const version = "4.23.2";
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
var version = '4.23.
|
|
358
|
+
var version = '4.23.2';
|
|
359
359
|
|
|
360
360
|
/**
|
|
361
361
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -1845,14 +1845,17 @@
|
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
ChannelService.prototype.handleChannelUpdate = function (event) {
|
|
1848
|
-
var _a, _b;
|
|
1848
|
+
var _a, _b, _c, _d;
|
|
1849
1849
|
var channelIndex = this.channels.findIndex(function (c) { return c.cid === event.channel.cid; });
|
|
1850
1850
|
if (channelIndex !== -1) {
|
|
1851
|
-
this.channels[channelIndex]
|
|
1851
|
+
var channel = this.channels[channelIndex];
|
|
1852
|
+
var notIncludedProperies = {
|
|
1853
|
+
hidden: ((_a = channel.data) === null || _a === void 0 ? void 0 : _a.hidden) || false,
|
|
1854
|
+
own_capabilities: ((_b = channel.data) === null || _b === void 0 ? void 0 : _b.own_capabilities) || [],
|
|
1855
|
+
};
|
|
1856
|
+
channel.data = Object.assign(Object.assign({}, event.channel), notIncludedProperies);
|
|
1852
1857
|
this.channelsSubject.next(__spreadArray([], __read(this.channels)));
|
|
1853
|
-
if (((
|
|
1854
|
-
var channel = this.activeChannelSubject.getValue();
|
|
1855
|
-
channel.data = event.channel;
|
|
1858
|
+
if (((_c = event.channel) === null || _c === void 0 ? void 0 : _c.cid) === ((_d = this.activeChannelSubject.getValue()) === null || _d === void 0 ? void 0 : _d.cid)) {
|
|
1856
1859
|
this.activeChannelSubject.next(channel);
|
|
1857
1860
|
}
|
|
1858
1861
|
}
|