-
-
Save LukeSmetham/0b6c03d96b807e90575cda669466f8c3 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
... | |
class AttendeesChat extends Component { | |
... | |
async componentDidMount() { | |
const { match, user, streamToken } = this.props; | |
await this.chatClient.setUser(user, streamToken); | |
const channel = await this.chatClient.channel('messaging', match.params.conferenceAlias, { | |
name: 'Video Call', | |
}); | |
await this.setState({ | |
channel, | |
}); | |
} | |
... | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment