Chats: allow clicking recipient in chatroom

This commit is contained in:
Alex Gleason 2020-09-11 13:09:39 -05:00
parent ec491add23
commit 40937b9fdc
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -3,6 +3,7 @@ import { connect } from 'react-redux';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl } from 'react-intl'; import { injectIntl } from 'react-intl';
import { Link } from 'react-router-dom';
import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePureComponent from 'react-immutable-pure-component';
import Avatar from 'soapbox/components/avatar'; import Avatar from 'soapbox/components/avatar';
import { acctFull } from 'soapbox/utils/accounts'; import { acctFull } from 'soapbox/utils/accounts';
@ -75,12 +76,12 @@ class ChatRoom extends ImmutablePureComponent {
<Column> <Column>
<div className='chatroom__back'> <div className='chatroom__back'>
<ColumnBackButton /> <ColumnBackButton />
<div className='chatroom__header'> <Link to={`/@${account.get('acct')}`} className='chatroom__header'>
<Avatar account={account} size={18} /> <Avatar account={account} size={18} />
<div className='chatroom__title'> <div className='chatroom__title'>
@{acctFull(account)} @{acctFull(account)}
</div> </div>
</div> </Link>
</div> </div>
<ChatBox <ChatBox
chatId={chat.get('id')} chatId={chat.get('id')}