stream-chat-angular 4.47.1 → 4.47.3
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 +25 -8
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +21 -2
- package/esm2015/lib/chat-client.service.js +3 -2
- package/esm2015/lib/message/message.component.js +2 -4
- package/fesm2015/stream-chat-angular.js +28 -11
- 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.47.
|
|
1
|
+
export declare const version = "4.47.3";
|
|
@@ -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.3';
|
|
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.
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
var _a;
|
|
654
654
|
if (typeof e.total_unread_count !== 'undefined') {
|
|
655
655
|
var user_1;
|
|
656
|
-
this.userSubject.pipe(
|
|
656
|
+
this.userSubject.pipe(operators.take(1)).subscribe(function (u) {
|
|
657
657
|
user_1 = u;
|
|
658
658
|
});
|
|
659
659
|
if (user_1 && user_1.total_unread_count !== e.total_unread_count) {
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
}
|
|
663
663
|
if (typeof e.unread_channels !== 'undefined') {
|
|
664
664
|
var user_2;
|
|
665
|
-
this.userSubject.pipe(
|
|
665
|
+
this.userSubject.pipe(operators.take(1)).subscribe(function (u) {
|
|
666
666
|
user_2 = u;
|
|
667
667
|
});
|
|
668
668
|
if (user_2 && user_2.unread_channels !== e.unread_channels) {
|
|
@@ -671,7 +671,7 @@
|
|
|
671
671
|
}
|
|
672
672
|
if (typeof e.unread_count !== 'undefined') {
|
|
673
673
|
var user_3;
|
|
674
|
-
this.userSubject.pipe(
|
|
674
|
+
this.userSubject.pipe(operators.take(1)).subscribe(function (u) {
|
|
675
675
|
user_3 = u;
|
|
676
676
|
});
|
|
677
677
|
if (user_3 && user_3.unread_count !== e.unread_count) {
|
|
@@ -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;
|
|
@@ -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
|