Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ios/EncryptedChat/EncryptedChatViewController.swift:10
override func viewDidLoad() {
super.viewDidLoad()
guard let presenter = presenter else {
return
}
VirgilClient.shared.prepareUser(otherUser!)
presenter.messagePreparationCallback = {
var message = $0
message.text = VirgilClient.shared.encrypt(message.text, for: self.otherUser!)
return message
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.