adapt encryption info to self-verification
- hide text when shown in a dialog - adapt "waiting for ... to accept" text to self-verif
This commit is contained in:
parent
081baa2359
commit
cc9c5cabb3
3 changed files with 27 additions and 5 deletions
|
@ -112,6 +112,9 @@ const EncryptionPanel = (props) => {
|
|||
const requested =
|
||||
(!request && isRequesting) ||
|
||||
(request && (phase === PHASE_REQUESTED || phase === PHASE_UNSENT || phase === undefined));
|
||||
const isSelfVerification = request ?
|
||||
request.isSelfVerification :
|
||||
member.userId === MatrixClientPeg.get().getUserId();
|
||||
if (!request || requested) {
|
||||
const initiatedByMe = (!request && isRequesting) || (request && request.initiatedByMe);
|
||||
return (<React.Fragment>
|
||||
|
@ -120,8 +123,10 @@ const EncryptionPanel = (props) => {
|
|||
isRoomEncrypted={isRoomEncrypted}
|
||||
onStartVerification={onStartVerification}
|
||||
member={member}
|
||||
isSelfVerification={isSelfVerification}
|
||||
waitingForOtherParty={requested && initiatedByMe}
|
||||
waitingForNetwork={requested && !initiatedByMe} />
|
||||
waitingForNetwork={requested && !initiatedByMe}
|
||||
inDialog={inDialog} />
|
||||
</React.Fragment>);
|
||||
} else {
|
||||
return (<React.Fragment>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue