Support for making devices unverified
Because its useful for testing Requires support from js-sdk, and (ideally) css from vector-webpull/21833/head
							parent
							
								
									624e34c48a
								
							
						
					
					
						commit
						ad00abe9c0
					
				|  | @ -25,8 +25,15 @@ module.exports = React.createClass({ | |||
|     }, | ||||
| 
 | ||||
|     onVerifyClick: function() { | ||||
|         MatrixClientPeg.get().setDeviceVerified(this.props.userId, | ||||
|                                                 this.props.device.id); | ||||
|         MatrixClientPeg.get().setDeviceVerified( | ||||
|             this.props.userId, this.props.device.id, true | ||||
|         ); | ||||
|     }, | ||||
| 
 | ||||
|     onUnverifyClick: function() { | ||||
|         MatrixClientPeg.get().setDeviceVerified( | ||||
|             this.props.userId, this.props.device.id, false | ||||
|         ); | ||||
|     }, | ||||
| 
 | ||||
|     render: function() { | ||||
|  | @ -35,9 +42,15 @@ module.exports = React.createClass({ | |||
|             indicator = ( | ||||
|                 <div className="mx_MemberDeviceInfo_verified">✔</div> | ||||
|             ); | ||||
|             button = ( | ||||
|                 <div className="mx_MemberDeviceInfo_textButton mx_MemberDeviceInfo_unverify" | ||||
|                   onClick={this.onUnverifyClick}> | ||||
|                     Unverify | ||||
|                 </div> | ||||
|             ); | ||||
|         } else { | ||||
|             button = ( | ||||
|                 <div className="mx_MemberDeviceInfo_textButton" | ||||
|                 <div className="mx_MemberDeviceInfo_textButton mx_MemberDeviceInfo_verify" | ||||
|                   onClick={this.onVerifyClick}> | ||||
|                     Verify | ||||
|                 </div> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Richard van der Hoff
						Richard van der Hoff