Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created June 3, 2020 02:28
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 cardoso/94ffcc5526a0979b103755d85ff9de07 to your computer and use it in GitHub Desktop.
Save cardoso/94ffcc5526a0979b103755d85ff9de07 to your computer and use it in GitHub Desktop.
import StreamChatClient
extension ConsultViewController {
func setupPatient() {
Client.shared.set(user: patient, token: .development)
self.presenter = .init(channel: channel)
}
func setupDoctor() {
Client.shared.set(user: doctor, token: .development)
self.presenter = .init(channel: channel)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment