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.
@@ -1 +1 @@
1
- export declare const version = "4.31.0";
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.0';
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.resetScrollState();
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];