UI: Fixed ws in notification

This commit is contained in:
Vladyslav_Prykhodko 2023-03-24 16:59:51 +02:00
parent af13292b4b
commit f1fb7d631e
2 changed files with 1 additions and 2 deletions

View File

@ -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();

View File

@ -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();