Merge pull request #4077 from matrix-org/bwindels/filterverifmethods
Only show supported verification methods
This commit is contained in:
commit
1b38827d92
3 changed files with 82 additions and 49 deletions
|
@ -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";
|
||||
|
||||
|
@ -72,7 +72,7 @@ const EncryptionPanel = ({verificationRequest, member, onClose, layout}) => {
|
|||
setPhase(verificationRequest.phase);
|
||||
}, [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…
Add table
Add a link
Reference in a new issue