diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.html index 693dbc23..dab6dc42 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.html @@ -54,6 +54,7 @@ ; roomSubscription: Subscription; isSearch = false; @@ -174,6 +175,10 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked { }) ) .subscribe(); + + this.selectedRoomInfo$ = this.store.pipe( + select(AppStore.MessengerSelector.RoomSelector.roomInfo) + ); } ngOnDestroy(): void { diff --git a/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.html b/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.html index ae747046..5d44475e 100644 --- a/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.html +++ b/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.ts b/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.ts index 6d6d11ac..2c48ba90 100644 --- a/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.ts +++ b/projects/ucap-webmessenger-ui-room/src/lib/components/list-item.component.ts @@ -35,6 +35,8 @@ export class ListItemComponent implements OnInit { @Input() loginRes: LoginResponse; @Input() + isSelected: boolean; + @Input() roomInfo: RoomInfo; @Input() roomUserInfo: (RoomUserInfo | UserInfoShort)[];