stream-chat-angular 2.20.0 → 2.20.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 = "2.20.0";
1
+ export declare const version = "2.20.1";
@@ -354,7 +354,7 @@
354
354
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
355
355
  }
356
356
 
357
- var version = '2.20.0';
357
+ var version = '2.20.1';
358
358
 
359
359
  /**
360
360
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -4060,7 +4060,12 @@
4060
4060
  this.message.mentioned_users.length === 0) {
4061
4061
  // Wrap emojis in span to display emojis correctly in Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=596223
4062
4062
  var regex = new RegExp(emojiRegex__default['default'](), 'g');
4063
- content = content.replace(regex, function (match) { return "<span class=\"str-chat__emoji-display-fix\">" + match + "</span>"; });
4063
+ // Based on this: https://stackoverflow.com/questions/4565112/javascript-how-to-find-out-if-the-user-browser-is-chrome
4064
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
4065
+ var isChrome_1 = !!window.chrome &&
4066
+ typeof window.opr === 'undefined';
4067
+ /* eslint-enable @typescript-eslint/no-unsafe-member-access */
4068
+ content = content.replace(regex, function (match) { return "<span " + (isChrome_1 ? 'class="str-chat__emoji-display-fix"' : '') + ">" + match + "</span>"; });
4064
4069
  this.messageTextParts = [{ content: content, type: 'text' }];
4065
4070
  }
4066
4071
  else {