mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-03 07:10:26 +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(() => {
|
||||
return () => {
|
||||
if (connState === ConnectionState.Connected) {
|
||||
livekitRoom?.disconnect();
|
||||
}
|
||||
livekitRoom?.disconnect();
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user