chat: hideAvatars hides chat input avatar

Fixes #3386.
This commit is contained in:
Matilde Park 2020-08-27 16:42:02 -04:00
parent 13b5851b71
commit a4b945b4a3
2 changed files with 5 additions and 1 deletions

View File

@ -149,6 +149,7 @@ export class ChatScreen extends Component<ChatScreenProps, ChatScreenState> {
deleteMessage={() => this.setState({
messages: this.state.messages.set(props.station, "")
})}
hideAvatars={props.hideAvatars}
/>
</div>
);

View File

@ -201,7 +201,10 @@ export class ChatInput extends Component {
const sigilClass = props.ownerContact
? '' : 'mix-blend-diff';
const avatar = (props.ownerContact && (props.ownerContact.avatar !== null))
const avatar = (
props.ownerContact &&
((props.ownerContact.avatar !== null) && !props.hideAvatars)
)
? <img src={props.ownerContact.avatar} height={24} width={24} className="dib" />
: <Sigil
ship={window.ship}