You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Fall back to MXID when no display name is present
MemberAvatar requires a display name, or else it refuses to render. Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
@@ -101,7 +101,7 @@ export default class EventTilePreview extends React.Component<IProps, IState> {
|
||||
|
||||
// Fake it more
|
||||
event.sender = {
|
||||
name: this.props.displayName,
|
||||
name: this.props.displayName || this.props.userId,
|
||||
userId: this.props.userId,
|
||||
getAvatarUrl: (..._) => {
|
||||
return Avatar.avatarUrlForUser(
|
||||
|
||||
Reference in New Issue
Block a user