stream-chat-angular 4.68.3 → 4.68.4
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 +4 -9
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +4 -9
- package/fesm2015/stream-chat-angular.js +4 -9
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -20,7 +20,7 @@ import transliterate from '@stream-io/transliterate';
|
|
|
20
20
|
import * as i8$1 from 'angular-mentions';
|
|
21
21
|
import { MentionModule } from 'angular-mentions';
|
|
22
22
|
|
|
23
|
-
const version = '4.68.
|
|
23
|
+
const version = '4.68.4';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -500,11 +500,10 @@ class ChannelService {
|
|
|
500
500
|
this.areReadEventsPaused = false;
|
|
501
501
|
const readState = channel.state.read[((_a = this.chatClientService.chatClient.user) === null || _a === void 0 ? void 0 : _a.id) || ''];
|
|
502
502
|
this.activeChannelLastReadMessageId = readState === null || readState === void 0 ? void 0 : readState.last_read_message_id;
|
|
503
|
-
|
|
504
|
-
if (((_b = channel.state.latestMessages[channel.state.latestMessages.length - 1]) === null || _b === void 0 ? void 0 : _b.id) === this.activeChannelLastReadMessageId ||
|
|
505
|
-
this.activeChannelUnreadCount === 0) {
|
|
503
|
+
if (((_b = channel.state.latestMessages[channel.state.latestMessages.length - 1]) === null || _b === void 0 ? void 0 : _b.id) === this.activeChannelLastReadMessageId) {
|
|
506
504
|
this.activeChannelLastReadMessageId = undefined;
|
|
507
505
|
}
|
|
506
|
+
this.activeChannelUnreadCount = (readState === null || readState === void 0 ? void 0 : readState.unread_messages) || 0;
|
|
508
507
|
this.watchForActiveChannelEvents(channel);
|
|
509
508
|
this.addChannel(channel);
|
|
510
509
|
this.activeChannelSubject.next(channel);
|
|
@@ -1292,9 +1291,6 @@ class ChannelService {
|
|
|
1292
1291
|
this.ngZone.run(() => {
|
|
1293
1292
|
this.activeChannelLastReadMessageId = e.last_read_message_id;
|
|
1294
1293
|
this.activeChannelUnreadCount = e.unread_messages;
|
|
1295
|
-
if (this.activeChannelUnreadCount === 0) {
|
|
1296
|
-
this.activeChannelLastReadMessageId = undefined;
|
|
1297
|
-
}
|
|
1298
1294
|
this.activeChannelSubject.next(this.activeChannel);
|
|
1299
1295
|
});
|
|
1300
1296
|
}));
|
|
@@ -1819,8 +1815,7 @@ class ChannelService {
|
|
|
1819
1815
|
markRead(channel, isThrottled = true) {
|
|
1820
1816
|
if (this.canSendReadEvents &&
|
|
1821
1817
|
this.shouldMarkActiveChannelAsRead &&
|
|
1822
|
-
!this.areReadEventsPaused
|
|
1823
|
-
channel.countUnread() > 0) {
|
|
1818
|
+
!this.areReadEventsPaused) {
|
|
1824
1819
|
if (isThrottled) {
|
|
1825
1820
|
this.markReadThrottled(channel);
|
|
1826
1821
|
}
|