mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	to_device requests now can include .request so we might need send .ready
This commit is contained in:
		
							parent
							
								
									a865cfb013
								
							
						
					
					
						commit
						8c3004c2ac
					
				@ -83,12 +83,13 @@ export default class CompleteSecurity extends React.Component {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    onVerificationRequest = (request) => {
 | 
			
		||||
    onVerificationRequest = async (request) => {
 | 
			
		||||
        if (request.otherUserId !== MatrixClientPeg.get().getUserId()) return;
 | 
			
		||||
 | 
			
		||||
        if (this.state.verificationRequest) {
 | 
			
		||||
            this.state.verificationRequest.off("change", this.onVerificationRequestChange);
 | 
			
		||||
        }
 | 
			
		||||
        await request.accept();
 | 
			
		||||
        request.on("change", this.onVerificationRequestChange);
 | 
			
		||||
        this.setState({
 | 
			
		||||
            verificationRequest: request,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user