Don't leave voice room on second click
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
import {
|
import {
|
||||||
deriveVoiceParticipants,
|
deriveVoiceParticipants,
|
||||||
joinVoiceRoom,
|
joinVoiceRoom,
|
||||||
leaveVoiceRoom,
|
|
||||||
currentVoiceSession,
|
currentVoiceSession,
|
||||||
isParticipantSpeaking,
|
isParticipantSpeaking,
|
||||||
participantKey,
|
participantKey,
|
||||||
@@ -31,7 +30,6 @@
|
|||||||
|
|
||||||
const handleClick = async () => {
|
const handleClick = async () => {
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
await leaveVoiceRoom()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (joinAbortController) {
|
if (joinAbortController) {
|
||||||
|
|||||||
Reference in New Issue
Block a user