chat: profile overlay links to group profile

Closes #2623.
This commit is contained in:
Matilde Park 2020-07-07 23:21:36 -04:00
parent 6b00c9864e
commit 8b99611910
2 changed files with 7 additions and 2 deletions

View File

@ -385,7 +385,8 @@ export class ChatScreen extends Component<ChatScreenProps, ChatScreenState> {
paddingTop={paddingTop}
paddingBot={paddingBot}
pending={Boolean(msg.pending)}
group={props.association}
group={props.group}
association={props.association}
/>
);
if (unread > 0 && i === unread - 1) {

View File

@ -54,7 +54,7 @@ export class ProfileOverlay extends Component {
? '/~groups/me'
: `/~groups/view${association['group-path']}/${window.ship}`;
const img = (contact && (contact.avatar !== null))
let img = (contact && (contact.avatar !== null))
? <img src={contact.avatar} height={160} width={160} className="brt2 dib" />
: <Sigil
ship={ship}
@ -64,6 +64,10 @@ export class ProfileOverlay extends Component {
svgClass="brt2"
/>;
if (!group.hidden) {
img = <Link to={`/~groups/view${association['group-path']}/${ship}`}>{img}</Link>;
}
return (
<div
ref={this.popoverRef}