stream-chat-angular 5.12.4 → 5.13.0

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.
@@ -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 = '5.12.4';
23
+ const version = '5.13.0';
24
24
 
25
25
  /**
26
26
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/) component displays the currently active notifications.
@@ -138,9 +138,20 @@ class ChatClientService {
138
138
  this.trackPendingChannelInvites =
139
139
  clientOptions?.trackPendingChannelInvites === true;
140
140
  this.chatClient = StreamChat.getInstance(apiKey, clientOptions);
141
- const sdkPrefix = 'stream-chat-angular';
142
- if (!this.chatClient.getUserAgent().includes(sdkPrefix)) {
143
- this.chatClient.setUserAgent(`${sdkPrefix}-${version}-${this.chatClient.getUserAgent()}`);
141
+ if ('sdkIdentifier' in this.chatClient) {
142
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
143
+ this.chatClient.sdkIdentifier = {
144
+ name: 'angular',
145
+ version,
146
+ };
147
+ }
148
+ else {
149
+ const userAgent = this.chatClient.getUserAgent();
150
+ if (!userAgent.includes('stream-chat-angular')) {
151
+ const parts = userAgent.split('-');
152
+ const jsVersion = parts[parts.length - 1] ?? '0.0.0';
153
+ this.chatClient.setUserAgent(`stream-chat-angular-v${version}-llc-v${jsVersion}`);
154
+ }
144
155
  }
145
156
  this.chatClient.recoverStateOnReconnect = false;
146
157
  this.chatClient.devToken;
@@ -8424,6 +8435,12 @@ class MessageListComponent {
8424
8435
  this.cdRef.detectChanges();
8425
8436
  }, 1000));
8426
8437
  }
8438
+ else {
8439
+ this.isJumpingToMessage = false;
8440
+ this.highlightedMessageId = undefined;
8441
+ this.firstUnreadMessageId = undefined;
8442
+ this.isJumpingToLatestUnreadMessage = false;
8443
+ }
8427
8444
  }
8428
8445
  newMessageReceived(message) {
8429
8446
  if ((this.mode === 'main' && message.parent_id) ||