diff --git a/src/app/components/shared/header/header.component.html b/src/app/components/shared/header/header.component.html index 44c75d4a9b5e18ab3ba989c1f02caec407163cff..78ed4559ad378536a71d151f971b1221750408bb 100644 --- a/src/app/components/shared/header/header.component.html +++ b/src/app/components/shared/header/header.component.html @@ -200,7 +200,7 @@ </ng-container> <!-- Session --> - <ng-container *ngIf="!router.url.endsWith('/comments') && !router.url.includes('/comment/')"> + <ng-container *ngIf="!router.url.endsWith('/comments') && !router.url.includes('/comment/') && !router.url.endsWith('tagcloud')"> <!-- app-room-participant-page --> <ng-container *ngIf="router.url.includes('/participant/room/')"> @@ -241,7 +241,7 @@ <!-- Room General Options - bot --> <ng-container - *ngIf="user && user.role == 3 && !router.url.includes('/participant') && !router.url.includes('/comment/')"> + *ngIf="user && user.role == 3 && !router.url.includes('/participant') && !router.url.includes('/comment/') && !router.url.endsWith('tagcloud')"> <button mat-menu-item *ngIf="user" diff --git a/src/app/services/util/room-data.service.ts b/src/app/services/util/room-data.service.ts index f8f2c0f0f7fd72ce0d6b452780558249027371a5..130d7e17d7bf3c22aa6dde9af6a9b8a524104f40 100644 --- a/src/app/services/util/room-data.service.ts +++ b/src/app/services/util/room-data.service.ts @@ -119,6 +119,9 @@ export class RoomDataService { getRoomData(roomId: string, freezed: boolean = false): Observable<Comment[]> { const tempSubject = new BehaviorSubject<Comment[]>(null); + if (this._currentRoomId !== roomId) { + this._commentUpdates.next(null); + } const subscription = this._commentUpdates.subscribe(comments => { if (comments === null) { return;