-
-
Save zontan/8ac5bf95c521cdd3280d20d08b444714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func didTapX(_ sender: Any) { | |
if inCall { | |
if (isLocalCall) { | |
//Toggle lock on the room | |
callLocked = !callLocked | |
if (callLocked) { | |
userRef.child("\(currentUser!.uid)/locked").setValue("true") | |
} else { | |
userRef.child("\(currentUser!.uid)/locked").setValue("false") | |
} | |
} else { | |
leaveChannel() | |
if let user = currentUser { | |
joinChannel(channelName: user.uid) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment