stream-chat-angular 4.31.0 → 4.31.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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +8 -4
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/date-parser.service.js +3 -3
- package/esm2015/lib/message-list/message-list.component.js +6 -2
- package/fesm2015/stream-chat-angular.js +8 -4
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/date-parser.service.d.ts +2 -2
- package/lib/message-list/message-list.component.d.ts +1 -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.31.
|
|
1
|
+
export declare const version = "4.31.1";
|
|
@@ -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.31.
|
|
359
|
+
var version = '4.31.1';
|
|
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.
|
|
@@ -4928,7 +4928,7 @@
|
|
|
4928
4928
|
/**
|
|
4929
4929
|
* Return a user-friendly string representation of the date (year, month and date)
|
|
4930
4930
|
* @param date
|
|
4931
|
-
* @returns
|
|
4931
|
+
* @returns The parsed date
|
|
4932
4932
|
*/
|
|
4933
4933
|
DateParserService.prototype.parseDate = function (date) {
|
|
4934
4934
|
if (this.customDateParser) {
|
|
@@ -4939,7 +4939,7 @@
|
|
|
4939
4939
|
/**
|
|
4940
4940
|
* Return a user-friendly string representation of the date and time
|
|
4941
4941
|
* @param date
|
|
4942
|
-
* @returns
|
|
4942
|
+
* @returns The parsed date
|
|
4943
4943
|
*/
|
|
4944
4944
|
DateParserService.prototype.parseDateTime = function (date) {
|
|
4945
4945
|
if (this.customDateTimeParser) {
|
|
@@ -6048,7 +6048,10 @@
|
|
|
6048
6048
|
this.isLatestMessageInList = true;
|
|
6049
6049
|
this.subscriptions.push(this.channelService.activeChannel$.subscribe(function (channel) {
|
|
6050
6050
|
var _a, _b;
|
|
6051
|
-
_this.
|
|
6051
|
+
if (_this.channelId !== (channel === null || channel === void 0 ? void 0 : channel.id)) {
|
|
6052
|
+
_this.resetScrollState();
|
|
6053
|
+
_this.channelId = channel === null || channel === void 0 ? void 0 : channel.id;
|
|
6054
|
+
}
|
|
6052
6055
|
var capabilites = (_a = channel === null || channel === void 0 ? void 0 : channel.data) === null || _a === void 0 ? void 0 : _a.own_capabilities;
|
|
6053
6056
|
if (capabilites) {
|
|
6054
6057
|
_this.enabledMessageActions = capabilites;
|
|
@@ -6291,6 +6294,7 @@
|
|
|
6291
6294
|
: this.channelService.activeThreadMessages$).pipe(operators.tap(function (messages) {
|
|
6292
6295
|
_this.isLoading = false;
|
|
6293
6296
|
if (messages.length === 0) {
|
|
6297
|
+
_this.resetScrollState();
|
|
6294
6298
|
return;
|
|
6295
6299
|
}
|
|
6296
6300
|
var currentLatestMessage = messages[messages.length - 1];
|