stream-chat-angular 4.36.0 → 4.36.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 +11 -5
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/message-list/message-list.component.js +11 -5
- package/fesm2015/stream-chat-angular.js +11 -5
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/message-list/message-list.component.d.ts +3 -3
- 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.36.
|
|
1
|
+
export declare const version = "4.36.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.36.
|
|
359
|
+
var version = '4.36.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.
|
|
@@ -6073,11 +6073,11 @@
|
|
|
6073
6073
|
this.displayDateSeparator = true;
|
|
6074
6074
|
/**
|
|
6075
6075
|
* If date separators are displayed, you can set the horizontal position of the date text.
|
|
6076
|
-
* If `openMessageListAt` is `last-
|
|
6076
|
+
* If `openMessageListAt` is `last-read-message` it will also set the text position of the new messages indicator.
|
|
6077
6077
|
*/
|
|
6078
6078
|
this.dateSeparatorTextPos = 'center';
|
|
6079
6079
|
/**
|
|
6080
|
-
* `last-message` option will open the message list at the last message, `last-
|
|
6080
|
+
* `last-message` option will open the message list at the last message, `last-read-message` will open the list at the last unread message. This option only works if mode is `main`.
|
|
6081
6081
|
*/
|
|
6082
6082
|
this.openMessageListAt = 'last-message';
|
|
6083
6083
|
/**
|
|
@@ -6100,10 +6100,14 @@
|
|
|
6100
6100
|
(_e = (_d = (_c = _this.chatClientService) === null || _c === void 0 ? void 0 : _c.chatClient) === null || _d === void 0 ? void 0 : _d.logger) === null || _e === void 0 ? void 0 : _e.call(_d, 'info', "new channel is different from prev channel, reseting scroll state", { tags: "message list " + _this.mode });
|
|
6101
6101
|
_this.resetScrollState();
|
|
6102
6102
|
_this.channelId = channel === null || channel === void 0 ? void 0 : channel.id;
|
|
6103
|
-
if (_this.openMessageListAt === 'last-
|
|
6103
|
+
if (_this.openMessageListAt === 'last-read-message' &&
|
|
6104
6104
|
_this.mode === 'main') {
|
|
6105
6105
|
_this.lastReadMessageId =
|
|
6106
6106
|
(_g = channel === null || channel === void 0 ? void 0 : channel.state.read[((_f = _this.chatClientService.chatClient.user) === null || _f === void 0 ? void 0 : _f.id) || '']) === null || _g === void 0 ? void 0 : _g.last_read_message_id;
|
|
6107
|
+
if (channel &&
|
|
6108
|
+
channel.state.latestMessages[channel.state.latestMessages.length - 1].id === _this.lastReadMessageId) {
|
|
6109
|
+
_this.lastReadMessageId = undefined;
|
|
6110
|
+
}
|
|
6107
6111
|
if (_this.lastReadMessageId) {
|
|
6108
6112
|
_this.isJumpingToLatestUnreadMessage = true;
|
|
6109
6113
|
void _this.channelService.jumpToMessage(_this.lastReadMessageId);
|
|
@@ -6451,7 +6455,9 @@
|
|
|
6451
6455
|
setTimeout(function () { return _this.scrollMessageIntoView(messageId, false); });
|
|
6452
6456
|
}
|
|
6453
6457
|
else if (element) {
|
|
6454
|
-
element.scrollIntoView({
|
|
6458
|
+
element.scrollIntoView({
|
|
6459
|
+
block: messageId === this.lastReadMessageId ? 'start' : 'center',
|
|
6460
|
+
});
|
|
6455
6461
|
setTimeout(function () {
|
|
6456
6462
|
_this.highlightedMessageId = undefined;
|
|
6457
6463
|
_this.isJumpingToLatestUnreadMessage = false;
|