stream-chat-angular 4.0.0-theming-v2.1 → 4.0.0-theming-v2.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 +5 -1
- 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 -1
- package/fesm2015/stream-chat-angular.js +5 -1
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/chat-client.service.d.ts +5 -0
- package/package.json +3 -3
- package/src/assets/version.ts +1 -1
package/assets/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.0.0-theming-v2.
|
|
1
|
+
export declare const version = "4.0.0-theming-v2.2";
|
|
@@ -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.0.0-theming-v2.
|
|
358
|
+
var version = '4.0.0-theming-v2.2';
|
|
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.
|
|
@@ -450,11 +450,13 @@
|
|
|
450
450
|
this.connectionStateSubject = new rxjs.ReplaySubject(1);
|
|
451
451
|
this.appSettingsSubject = new rxjs.BehaviorSubject(undefined);
|
|
452
452
|
this.pendingInvitesSubject = new rxjs.BehaviorSubject([]);
|
|
453
|
+
this.userSubject = new rxjs.ReplaySubject(1);
|
|
453
454
|
this.subscriptions = [];
|
|
454
455
|
this.events$ = this.notificationSubject.asObservable();
|
|
455
456
|
this.connectionState$ = this.connectionStateSubject.asObservable();
|
|
456
457
|
this.appSettings$ = this.appSettingsSubject.asObservable();
|
|
457
458
|
this.pendingInvites$ = this.pendingInvitesSubject.asObservable();
|
|
459
|
+
this.user$ = this.userSubject.asObservable();
|
|
458
460
|
}
|
|
459
461
|
/**
|
|
460
462
|
* Creates a [`StreamChat`](https://github.com/GetStream/stream-chat-js/blob/668b3e5521339f4e14fc657834531b4c8bf8176b/src/client.ts#L124) instance using the provided `apiKey`, and connects a user with the given meta data and token. More info about [connecting users](https://getstream.io/chat/docs/javascript/init_and_users/?language=javascript) can be found in the platform documentation.
|
|
@@ -491,6 +493,7 @@
|
|
|
491
493
|
throw error_1;
|
|
492
494
|
case 4:
|
|
493
495
|
this.chatClient.setUserAgent("stream-chat-angular-" + version + "-" + this.chatClient.getUserAgent());
|
|
496
|
+
this.userSubject.next(this.chatClient.user);
|
|
494
497
|
return [2 /*return*/];
|
|
495
498
|
}
|
|
496
499
|
});
|
|
@@ -542,6 +545,7 @@
|
|
|
542
545
|
return [4 /*yield*/, this.chatClient.disconnectUser()];
|
|
543
546
|
case 1:
|
|
544
547
|
_d.sent();
|
|
548
|
+
this.userSubject.next(undefined);
|
|
545
549
|
this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
546
550
|
return [2 /*return*/];
|
|
547
551
|
}
|