stream-chat-angular 4.47.0 → 4.47.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 +23 -6
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +22 -3
- package/esm2015/lib/message/message.component.js +2 -4
- package/fesm2015/stream-chat-angular.js +23 -6
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +2 -0
- 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.47.
|
|
1
|
+
export declare const version = "4.47.2";
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
var version = '4.47.
|
|
359
|
+
var version = '4.47.2';
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
362
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -1943,7 +1943,9 @@
|
|
|
1943
1943
|
ChannelService.prototype.watchForChannelEvents = function (channel) {
|
|
1944
1944
|
var _this = this;
|
|
1945
1945
|
var unsubscribe = channel.on(function (event) {
|
|
1946
|
-
|
|
1946
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
1947
|
+
var type = event.type;
|
|
1948
|
+
switch (type) {
|
|
1947
1949
|
case 'message.new': {
|
|
1948
1950
|
_this.ngZone.run(function () {
|
|
1949
1951
|
if (_this.customNewMessageHandler) {
|
|
@@ -2010,6 +2012,23 @@
|
|
|
2010
2012
|
});
|
|
2011
2013
|
break;
|
|
2012
2014
|
}
|
|
2015
|
+
case 'capabilities.changed': {
|
|
2016
|
+
_this.ngZone.run(function () {
|
|
2017
|
+
var _a;
|
|
2018
|
+
var cid = event.cid;
|
|
2019
|
+
if (cid) {
|
|
2020
|
+
var currentChannels = _this.channelsSubject.getValue();
|
|
2021
|
+
var index = currentChannels === null || currentChannels === void 0 ? void 0 : currentChannels.findIndex(function (c) { return c.cid === cid; });
|
|
2022
|
+
if (index !== -1 && index !== undefined) {
|
|
2023
|
+
_this.channelsSubject.next(__spreadArray([], __read(currentChannels)));
|
|
2024
|
+
if (cid === ((_a = _this.activeChannelSubject.getValue()) === null || _a === void 0 ? void 0 : _a.cid)) {
|
|
2025
|
+
_this.activeChannelSubject.next(_this.activeChannelSubject.getValue());
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
});
|
|
2030
|
+
break;
|
|
2031
|
+
}
|
|
2013
2032
|
}
|
|
2014
2033
|
});
|
|
2015
2034
|
this.channelSubscriptions[channel.cid] = unsubscribe.unsubscribe;
|
|
@@ -2023,7 +2042,7 @@
|
|
|
2023
2042
|
this.removeChannelsFromChannelList([event.channel.cid], false);
|
|
2024
2043
|
};
|
|
2025
2044
|
ChannelService.prototype.handleChannelDeleted = function (event) {
|
|
2026
|
-
this.removeChannelsFromChannelList([event.channel.cid],
|
|
2045
|
+
this.removeChannelsFromChannelList([event.channel.cid], false);
|
|
2027
2046
|
};
|
|
2028
2047
|
ChannelService.prototype.handleChannelVisible = function (event, channel) {
|
|
2029
2048
|
var _this = this;
|
|
@@ -5492,9 +5511,7 @@
|
|
|
5492
5511
|
}
|
|
5493
5512
|
if (changes.message || changes.enabledMessageActions || changes.mode) {
|
|
5494
5513
|
this.shouldDisplayThreadLink =
|
|
5495
|
-
!!((_g = this.message) === null || _g === void 0 ? void 0 : _g.reply_count) &&
|
|
5496
|
-
this.mode !== 'thread' &&
|
|
5497
|
-
this.enabledMessageActions.indexOf('send-reply') !== -1;
|
|
5514
|
+
!!((_g = this.message) === null || _g === void 0 ? void 0 : _g.reply_count) && this.mode !== 'thread';
|
|
5498
5515
|
}
|
|
5499
5516
|
if (changes.message || changes.mode) {
|
|
5500
5517
|
this.areOptionsVisible = this.message
|