mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: fix removeFilter error when no filter available
parent
354a26c6d0
commit
8550b77d17
|
@ -540,7 +540,11 @@ export class Stream {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!!this.filter && this.filter?.type.startsWith('VB:')) {
|
if (!!this.filter) {
|
||||||
|
|
||||||
|
// There is a filter applied
|
||||||
|
|
||||||
|
if (this.filter?.type.startsWith('VB:')) {
|
||||||
|
|
||||||
// Client filters
|
// Client filters
|
||||||
|
|
||||||
|
@ -585,6 +589,12 @@ export class Stream {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// There is no filter applied
|
||||||
|
return reject(new OpenViduError(OpenViduErrorName.GENERIC_ERROR, "Stream " + this.streamId + " has no filter applied"));
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue