Fix unmount TypeError in `DeviceVerifyButtons`
							parent
							
								
									a07ba49641
								
							
						
					
					
						commit
						d1b78e5b08
					
				|  | @ -42,7 +42,9 @@ export default React.createClass({ | |||
| 
 | ||||
|     componentWillUnmount: function() { | ||||
|         const cli = MatrixClientPeg.get(); | ||||
|         cli.removeListener("deviceVerificationChanged", this.onDeviceVerificationChanged); | ||||
|         if (cli) { | ||||
|             cli.removeListener("deviceVerificationChanged", this.onDeviceVerificationChanged); | ||||
|         } | ||||
|     }, | ||||
| 
 | ||||
|     onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 J. Ryan Stinnett
						J. Ryan Stinnett