pull/662/head
Audric Ackermann 5 years ago
parent bd7f587aa7
commit be5f932c08

@ -291,7 +291,7 @@
window.Whisper.events.trigger('inviteFriends', this.model);
},
onShowUserDetails: (pubkey) => {
onShowUserDetails: pubkey => {
if (this.model.isPrivate()) {
window.Whisper.events.trigger('onShowUserDetails', {
userPubKey: pubkey,

@ -272,12 +272,10 @@
}
}
}
}
.dark-theme {
.group-invitation {
background-color: #242424;
border-color: #303030;
box-shadow: 2px 2px #4f4f4f;

@ -175,6 +175,7 @@ export class Avatar extends React.PureComponent<Props, State> {
!hasImage ? `module-avatar--${color}` : null
)}
onClick={this.onAvatarClickBound}
role="button"
>
{hasImage ? this.renderAvatarOrIdenticon() : this.renderNoImage()}
</div>
@ -183,7 +184,7 @@ export class Avatar extends React.PureComponent<Props, State> {
private onAvatarClick() {
if (this.props.onAvatarClick) {
this.props.onAvatarClick()
this.props.onAvatarClick();
}
}

@ -36,9 +36,7 @@ export class UserDetailsDialog extends React.Component<Props> {
return (
<div className="content">
<div className="avatar-center">
<div className="avatar-center-inner">
{this.renderAvatar()}
</div>
<div className="avatar-center-inner">{this.renderAvatar()}</div>
</div>
<div className="profile-name">{this.props.profileName}</div>
<div className="message">{this.props.pubkey}</div>

@ -298,6 +298,12 @@ export class ConversationHeader extends React.Component<Props> {
);
}
public onShowUserDetails(userPubKey: string) {
if (this.props.onShowUserDetails) {
this.props.onShowUserDetails(userPubKey);
}
}
private renderMemberCount() {
const memberCount = this.props.members.length;
@ -403,9 +409,4 @@ export class ConversationHeader extends React.Component<Props> {
</React.Fragment>
);
}
public onShowUserDetails(userPubKey: string) {
if (this.props.onShowUserDetails)
this.props.onShowUserDetails(userPubKey);
}
}

@ -673,8 +673,7 @@ export class Message extends React.PureComponent<Props, State> {
}
return (
<div
className="module-message__author-avatar">
<div className="module-message__author-avatar">
<Avatar
avatarPath={authorAvatarPath}
color={authorColor}

Loading…
Cancel
Save