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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +4 -3
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/chat-client.service.js +4 -3
- package/fesm2015/stream-chat-angular.js +4 -3
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/chat-client.service.d.ts +3 -2
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/assets/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
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.
|
|
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;
|