UI: Fixed ws in notification
This commit is contained in:
parent
af13292b4b
commit
f1fb7d631e
@ -72,7 +72,7 @@ export class NotificationWebsocketService extends WebsocketService<NotificationS
|
||||
}
|
||||
}
|
||||
);
|
||||
if (this.cmdWrapper.markAsReadCmd || this.cmdWrapper.markAllAsReadCmd) {
|
||||
if (this.cmdWrapper.unreadCountSubCmd || this.cmdWrapper.unreadSubCmd) {
|
||||
this.subscribersCount++;
|
||||
}
|
||||
this.publishCommands();
|
||||
|
||||
@ -61,7 +61,6 @@ export class NotificationBellComponent implements OnDestroy {
|
||||
private renderer: Renderer2,
|
||||
private viewContainerRef: ViewContainerRef,
|
||||
private store: Store<AppState>,) {
|
||||
this.initSubscription();
|
||||
this.store.pipe(select(selectIsAuthenticated)).subscribe((value) => {
|
||||
if (value) {
|
||||
this.initSubscription();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user