From 93a907843da110365f6735aec9258710252e5cf6 Mon Sep 17 00:00:00 2001 From: Shawn Jackson Date: Thu, 7 Mar 2024 13:14:21 -0800 Subject: [PATCH] CU-3w8ybcw more cleanup --- .../voice-footer/voice-footer.component.ts | 29 ++----------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/src/app/features/voice/shared/voice-footer/voice-footer.component.ts b/src/app/features/voice/shared/voice-footer/voice-footer.component.ts index a684da5..2451b7b 100644 --- a/src/app/features/voice/shared/voice-footer/voice-footer.component.ts +++ b/src/app/features/voice/shared/voice-footer/voice-footer.component.ts @@ -1,12 +1,4 @@ -import { ChangeDetectorRef, Component, OnInit } from "@angular/core"; -import { Store } from "@ngrx/store"; -import { DepartmentVoiceChannelResultData } from '@resgrid/ngx-resgridlib'; -import { Observable, Subscription } from "rxjs"; -import { VoiceState } from "src/app/features/voice/store/voice.store"; -import { AudioProvider } from "src/app/providers/audio"; -import { OpenViduService } from "src/app/providers/openvidu"; -import { selectAvailableChannelsState, selectVoiceState } from "src/app/store"; -import * as VoiceActions from "../../actions/voice.actions"; +import { Component, OnInit } from "@angular/core"; @Component({ selector: "app-voice-footer", @@ -14,18 +6,9 @@ import * as VoiceActions from "../../actions/voice.actions"; styleUrls: ["./voice-footer.component.scss"], }) export class VoiceFooterComponent implements OnInit { - public selectedChannel: DepartmentVoiceChannelResultData; - public isTransmitting: boolean = false; - public voiceState$: Observable; - public availableChannels$: Observable; - private participants: number = 0; - private voiceSubscription: Subscription; - private availableChannelsSubscription: Subscription; + constructor() { - constructor(private store: Store, private audioProvider: AudioProvider, - public openViduService: OpenViduService, private ref: ChangeDetectorRef) { - this.voiceState$ = this.store.select(selectVoiceState); } ngOnInit(): void { @@ -33,14 +16,6 @@ export class VoiceFooterComponent implements OnInit { } ngOnDestroy(): void { - if (this.voiceSubscription) { - this.voiceSubscription.unsubscribe(); - this.voiceSubscription = null; - } - if (this.availableChannelsSubscription) { - this.availableChannelsSubscription.unsubscribe(); - this.availableChannelsSubscription = null; - } } }