Skip to content

Instantly share code, notes, and snippets.

@zontan
Created July 6, 2020 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zontan/c3a9eee310f7f761c30a9f573ad27cec to your computer and use it in GitHub Desktop.
Save zontan/c3a9eee310f7f761c30a9f573ad27cec to your computer and use it in GitHub Desktop.
func didJoinFriend(uid: String) {
joinFriendCallWithUID(uid: uid)
}
func joinFriendCallWithUID(uid: String) {
leaveChannel()
joinChannel(channelName: uid)
}
func leaveChannel() {
getAgoraEngine().leaveChannel(nil)
inCall = false
remoteUserIDs.removeAll()
collectionView.reloadData()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment