-
-
Save zontan/c3a9eee310f7f761c30a9f573ad27cec 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
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