stream-chat-angular 4.47.1 → 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.
@@ -1 +1 @@
1
- export declare const version = "4.47.1";
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.1';
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
- switch (event.type) {
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;
@@ -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