mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
remove condition for disconnect
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -109,9 +109,7 @@ export const ActiveCall: FC<ActiveCallProps> = (props) => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return () => {
|
return () => {
|
||||||
if (connState === ConnectionState.Connected) {
|
livekitRoom?.disconnect();
|
||||||
livekitRoom?.disconnect();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user