Created
January 3, 2020 10:41
-
-
Save Krishna21Soni13/15afeaa67a933b740ffc65d4dd8d7367 to your computer and use it in GitHub Desktop.
Exit chat room.
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
@objc func exitButtonCLK() { | |
guard let name = nickName else { | |
return | |
} | |
SocketHelper.shared.leaveChatRoom(nickname: name) { [weak self] in | |
guard let self = self else { | |
return | |
} | |
self.navigationController?.popViewController(animated: true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment