Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active July 2, 2020 02:38
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/2f7faccdfa44e83c1a6071faae744450 to your computer and use it in GitHub Desktop.
Save cardoso/2f7faccdfa44e83c1a6071faae744450 to your computer and use it in GitHub Desktop.
import StreamChatClient
extension ClassViewController {
func setupStudent() {
Client.shared.set(user: student, token: .development)
self.presenter = .init(channel: channel)
}
func setupTeacher() {
Client.shared.set(user: teacher, 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