stream-chat-angular 4.20.0 → 4.21.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.
@@ -1 +1 @@
1
- export declare const version = "4.20.0";
1
+ export declare const version = "4.21.0";
@@ -355,7 +355,7 @@
355
355
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
356
356
  }
357
357
 
358
- var version = '4.20.0';
358
+ var version = '4.21.0';
359
359
 
360
360
  /**
361
361
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -463,8 +463,9 @@
463
463
  * @param apiKey
464
464
  * @param userOrId
465
465
  * @param userTokenOrProvider You can provide a token, or the keyword 'guest' to connect as [guest user](https://getstream.io/chat/docs/javascript/authless_users/?language=javascript#guest-users)
466
+ * @param clientOptions Setting to provide to the Stream client instance
466
467
  */
467
- ChatClientService.prototype.init = function (apiKey, userOrId, userTokenOrProvider) {
468
+ ChatClientService.prototype.init = function (apiKey, userOrId, userTokenOrProvider, clientOptions) {
468
469
  var _a;
469
470
  return __awaiter(this, void 0, void 0, function () {
470
471
  var result, channels, removeNotification;
@@ -472,7 +473,7 @@
472
473
  return __generator(this, function (_d) {
473
474
  switch (_d.label) {
474
475
  case 0:
475
- this.chatClient = streamChat.StreamChat.getInstance(apiKey);
476
+ this.chatClient = streamChat.StreamChat.getInstance(apiKey, clientOptions);
476
477
  this.chatClient.devToken;
477
478
  return [4 /*yield*/, this.ngZone.runOutsideAngular(function () { return __awaiter(_this, void 0, void 0, function () {
478
479
  var user, _d, error_1, sdkPrefix;