remove toggle use sender keys. Rely on lokiFeatureFlag directly

pull/1309/head
Audric Ackermann 5 years ago
parent 7fad410777
commit dc77e6e44e
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -674,17 +674,6 @@ label {
}
}
.sealed-sender-toggle {
display: flex;
padding: 6px;
}
.sender-keys-description {
display: flex;
align-items: center;
padding-left: 10px;
}
.session-modal__body {
display: flex;
flex-direction: column;

@ -37,7 +37,6 @@ interface Props {
interface State {
groupName: string;
selectedMembers: Array<ContactType>;
senderKeys: boolean;
}
export class SessionClosableOverlay extends React.Component<Props, State> {
@ -49,7 +48,6 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
this.state = {
groupName: '',
selectedMembers: [],
senderKeys: false,
};
this.inputRef = React.createRef();
@ -160,7 +158,7 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
default:
}
const { groupName, selectedMembers, senderKeys } = this.state;
const { groupName, selectedMembers } = this.state;
const ourSessionID = window.textsecure.storage.user.getNumber();
const contacts = this.getContacts();
@ -256,33 +254,18 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
/>
)}
{isClosedGroupView && window.lokiFeatureFlags.enableSenderKeys && (
<div className="sealed-sender-toggle">
<SessionToggle
active={Boolean(false)}
onClick={() => {
const value = this.state.senderKeys;
this.setState({ senderKeys: !value });
}}
/>
<span
className={classNames(
'session-settings-item__description',
'sender-keys-description'
)}
>
{window.i18n('useSenderKeys')}
</span>
</div>
)}
<SessionButton
buttonColor={SessionButtonColor.Green}
buttonType={SessionButtonType.BrandOutline}
text={buttonText}
disabled={noContactsForClosedGroup}
onClick={() => onButtonClick(groupName, selectedMembers, senderKeys)}
onClick={() =>
onButtonClick(
groupName,
selectedMembers,
window.lokiFeatureFlags.enableSenderKeys
)
}
/>
</div>
);

Loading…
Cancel
Save