Initial pairing modal prep

This commit is contained in:
Vincent 2019-12-23 17:13:29 +11:00
parent ff7dbd6562
commit 798eb402cb

View file

@ -30,6 +30,9 @@ export class UserDetailsDialog extends React.Component<Props> {
public render() {
const i18n = this.props.i18n;
const isRss =
window.ConversationController.get(this.props.pubkey).attributes.type ===
'group';
return (
<SessionModal
@ -43,12 +46,14 @@ export class UserDetailsDialog extends React.Component<Props> {
<div className="message">{this.props.pubkey}</div>
<div className="session-modal__button-group__center">
<SessionButton
text={i18n('startConversation')}
buttonType={SessionButtonType.Default}
buttonColor={SessionButtonColor.Primary}
onClick={this.onClickStartConversation}
/>
{!isRss ? (
<SessionButton
text={i18n('startConversation')}
buttonType={SessionButtonType.Default}
buttonColor={SessionButtonColor.Primary}
onClick={this.onClickStartConversation}
/>
) : null}
</div>
</SessionModal>
);