stream-chat-angular 5.7.1 → 5.7.2

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.
@@ -21,7 +21,7 @@ import transliterate from '@stream-io/transliterate';
21
21
  import * as i7 from 'angular-mentions';
22
22
  import { MentionModule } from 'angular-mentions';
23
23
 
24
- const version = '5.7.1';
24
+ const version = '5.7.2';
25
25
 
26
26
  /**
27
27
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -5804,7 +5804,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
5804
5804
  }]
5805
5805
  }], ctorParameters: function () { return []; } });
5806
5806
 
5807
- const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
5807
+ const isSafari = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
5808
5808
 
5809
5809
  var MediaRecordingState;
5810
5810
  (function (MediaRecordingState) {
@@ -6239,7 +6239,7 @@ class AudioRecorderService extends MultimediaRecorder {
6239
6239
  * - For all other browsers we use audio/webm (which is then transcoded to wav)
6240
6240
  */
6241
6241
  this.config = {
6242
- mimeType: isSafari ? 'audio/mp4;codecs=mp4a.40.2' : 'audio/webm',
6242
+ mimeType: isSafari() ? 'audio/mp4;codecs=mp4a.40.2' : 'audio/webm',
6243
6243
  };
6244
6244
  }
6245
6245
  enrichWithExtraData() {
@@ -7673,6 +7673,7 @@ class MessageListComponent {
7673
7673
  this.parsedDates = new Map();
7674
7674
  this.isViewInited = false;
7675
7675
  this.forceRepaintSubject = new Subject();
7676
+ this.isSafari = isSafari();
7676
7677
  this.scrollPosition$ = new BehaviorSubject('bottom');
7677
7678
  this.messageNotificationJumpClicked = () => {
7678
7679
  this.jumpToFirstUnreadMessage();
@@ -7917,7 +7918,7 @@ class MessageListComponent {
7917
7918
  scrollToBottom() {
7918
7919
  this.scrollContainer.nativeElement.scrollTop =
7919
7920
  this.scrollContainer.nativeElement.scrollHeight + 0.1;
7920
- if (isSafari) {
7921
+ if (this.isSafari) {
7921
7922
  this.forceRepaintSubject.next();
7922
7923
  }
7923
7924
  }
@@ -8040,7 +8041,7 @@ class MessageListComponent {
8040
8041
  (messageToAlignTo?.getBoundingClientRect()?.top || 0) -
8041
8042
  (this.anchorMessageTopOffset || 0);
8042
8043
  this.anchorMessageTopOffset = undefined;
8043
- if (isSafari) {
8044
+ if (this.isSafari) {
8044
8045
  this.forceRepaintSubject.next();
8045
8046
  }
8046
8047
  }