stream-chat-angular 3.8.1 → 3.8.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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +6 -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 +5 -2
- package/fesm2015/stream-chat-angular.js +5 -2
- package/fesm2015/stream-chat-angular.js.map +1 -1
- 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 = "3.8.
|
|
1
|
+
export declare const version = "3.8.2";
|
|
@@ -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 = '3.8.
|
|
357
|
+
var version = '3.8.2';
|
|
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.
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
this.chatClient = streamChat.StreamChat.getInstance(apiKey);
|
|
475
475
|
this.chatClient.devToken;
|
|
476
476
|
return [4 /*yield*/, this.ngZone.runOutsideAngular(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
477
|
-
var user, _d;
|
|
477
|
+
var user, _d, sdkPrefix;
|
|
478
478
|
return __generator(this, function (_e) {
|
|
479
479
|
switch (_e.label) {
|
|
480
480
|
case 0:
|
|
@@ -491,7 +491,10 @@
|
|
|
491
491
|
case 4:
|
|
492
492
|
result = _d;
|
|
493
493
|
this.userSubject.next(this.chatClient.user);
|
|
494
|
-
|
|
494
|
+
sdkPrefix = 'stream-chat-angular';
|
|
495
|
+
if (!this.chatClient.getUserAgent().includes(sdkPrefix)) {
|
|
496
|
+
this.chatClient.setUserAgent(sdkPrefix + "-" + version + "-" + this.chatClient.getUserAgent());
|
|
497
|
+
}
|
|
495
498
|
return [2 /*return*/];
|
|
496
499
|
}
|
|
497
500
|
});
|