unsent could potentially also happen here
although should not happen in practicepull/21833/head
							parent
							
								
									a6c072ab42
								
							
						
					
					
						commit
						30718e7fde
					
				| 
						 | 
				
			
			@ -23,7 +23,7 @@ import {MatrixClientPeg} from "../../../MatrixClientPeg";
 | 
			
		|||
import {ensureDMExists} from "../../../createRoom";
 | 
			
		||||
import {useEventEmitter} from "../../../hooks/useEventEmitter";
 | 
			
		||||
import Modal from "../../../Modal";
 | 
			
		||||
import {PHASE_REQUESTED} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
 | 
			
		||||
import {PHASE_REQUESTED, PHASE_UNSENT} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
 | 
			
		||||
import * as sdk from "../../../index";
 | 
			
		||||
import {_t} from "../../../languageHandler";
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -71,7 +71,7 @@ const EncryptionPanel = ({verificationRequest, member, onClose, layout}) => {
 | 
			
		|||
        setRequest(verificationRequest);
 | 
			
		||||
    }, [member.userId]);
 | 
			
		||||
 | 
			
		||||
    const requested = request && (phase === PHASE_REQUESTED || phase === undefined);
 | 
			
		||||
    const requested = request && (phase === PHASE_REQUESTED || phase === PHASE_UNSENT || phase === undefined);
 | 
			
		||||
    if (!request || requested) {
 | 
			
		||||
        return <EncryptionInfo onStartVerification={onStartVerification} member={member} pending={requested} />;
 | 
			
		||||
    } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue