Should not be able to play a call from search pane if play is paused

This commit is contained in:
Chrystian Huot 2019-07-14 17:21:03 -04:00
parent 2489a5a490
commit 2a717b7afb

View file

@ -193,6 +193,7 @@ export class AppRadioService implements OnDestroy {
play(call?: RadioCall): void {
this._configureAudio();
if (!this._paused) {
if (call) {
if (call.audio) {
if (this._call.current) {
@ -215,6 +216,7 @@ export class AppRadioService implements OnDestroy {
this._audio.load();
}
}
}
queue(call: RadioCall | RadioCall[], bypass = false): void {
if (Array.isArray(call)) {