|
|
|
@ -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>
|
|
|
|
|
);
|
|
|
|
|