fix lint & other cleanup
This commit is contained in:
parent
9b54d15fcd
commit
34b0c1b1e7
1 changed files with 9 additions and 5 deletions
|
@ -93,7 +93,11 @@ const EncryptionPanel = (props) => {
|
||||||
let cancelButton;
|
let cancelButton;
|
||||||
if (request && request.pending) {
|
if (request && request.pending) {
|
||||||
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
|
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
|
||||||
cancelButton = <AccessibleButton className="mx_EncryptionPanel_cancel" onClick={onCancel} title={_t('Cancel')}></AccessibleButton>;
|
cancelButton = (<AccessibleButton
|
||||||
|
className="mx_EncryptionPanel_cancel"
|
||||||
|
onClick={onCancel}
|
||||||
|
title={_t('Cancel')}
|
||||||
|
></AccessibleButton>);
|
||||||
}
|
}
|
||||||
|
|
||||||
const onStartVerification = useCallback(async () => {
|
const onStartVerification = useCallback(async () => {
|
||||||
|
@ -110,7 +114,7 @@ const EncryptionPanel = (props) => {
|
||||||
(request && (phase === PHASE_REQUESTED || phase === PHASE_UNSENT || phase === undefined));
|
(request && (phase === PHASE_REQUESTED || phase === PHASE_UNSENT || phase === undefined));
|
||||||
if (!request || requested) {
|
if (!request || requested) {
|
||||||
const initiatedByMe = (!request && isRequesting) || (request && request.initiatedByMe);
|
const initiatedByMe = (!request && isRequesting) || (request && request.initiatedByMe);
|
||||||
return <React.Fragment>
|
return (<React.Fragment>
|
||||||
{cancelButton}
|
{cancelButton}
|
||||||
<EncryptionInfo
|
<EncryptionInfo
|
||||||
isRoomEncrypted={isRoomEncrypted}
|
isRoomEncrypted={isRoomEncrypted}
|
||||||
|
@ -118,9 +122,9 @@ const EncryptionPanel = (props) => {
|
||||||
member={member}
|
member={member}
|
||||||
waitingForOtherParty={requested && initiatedByMe}
|
waitingForOtherParty={requested && initiatedByMe}
|
||||||
waitingForNetwork={requested && !initiatedByMe} />
|
waitingForNetwork={requested && !initiatedByMe} />
|
||||||
</React.Fragment>;
|
</React.Fragment>);
|
||||||
} else {
|
} else {
|
||||||
return <React.Fragment>
|
return (<React.Fragment>
|
||||||
{cancelButton}
|
{cancelButton}
|
||||||
<VerificationPanel
|
<VerificationPanel
|
||||||
isRoomEncrypted={isRoomEncrypted}
|
isRoomEncrypted={isRoomEncrypted}
|
||||||
|
@ -130,7 +134,7 @@ const EncryptionPanel = (props) => {
|
||||||
request={request}
|
request={request}
|
||||||
key={request.channel.transactionId}
|
key={request.channel.transactionId}
|
||||||
phase={phase} />
|
phase={phase} />
|
||||||
</React.Fragment>;
|
</React.Fragment>);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
EncryptionPanel.propTypes = {
|
EncryptionPanel.propTypes = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue