Improve composer visiblity (#8578)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Germain 2022-06-07 08:28:29 +01:00 committed by GitHub
parent 8c13a0f8d4
commit f14374a51c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 323 additions and 174 deletions

View file

@ -44,6 +44,7 @@ interface IProps {
getRelationsForEvent?: (
(eventId: string, relationType: string, eventType: string) => Relations
);
showSenderProfile?: boolean;
}
export default class ReplyTile extends React.PureComponent<IProps> {
@ -51,6 +52,7 @@ export default class ReplyTile extends React.PureComponent<IProps> {
static defaultProps = {
onHeightChanged: () => {},
showSenderProfile: true,
};
componentDidMount() {
@ -136,7 +138,8 @@ export default class ReplyTile extends React.PureComponent<IProps> {
let sender;
const needsSenderProfile = (
!isInfoMessage
this.props.showSenderProfile
&& !isInfoMessage
&& msgType !== MsgType.Image
&& evType !== EventType.Sticker
&& evType !== EventType.RoomCreate