Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
generateCipherKeyAndChannelName(selectedAddress) {
const cipherKey = `${selectedAddress.substr(-4)}-${PubNub.generateUUID()}`;
const channelName = `mmm-${PubNub.generateUUID()}`;
return { cipherKey, channelName };
}
generateCipherKeyAndChannelName () {
this.cipherKey = `${this.props.selectedAddress.substr(-4)}-${PubNub.generateUUID()}`
this.channelName = `mm-${PubNub.generateUUID()}`
this.setState({cipherKey: this.cipherKey, channelName: this.channelName})
}
generateCipherKeyAndChannelName () {
this.cipherKey = `${this.props.selectedAddress.substr(-4)}-${PubNub.generateUUID()}`
this.channelName = `mm-${PubNub.generateUUID()}`
this.setState({cipherKey: this.cipherKey, channelName: this.channelName})
}