mirror of https://github.com/vector-im/riot-web
Merge pull request #6000 from robintown/event-tile-preview-fixes
EventTilePreview fixespull/21833/head
commit
1180741cc2
|
@ -101,7 +101,8 @@ 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,
|
||||
rawDisplayName: this.props.displayName,
|
||||
userId: this.props.userId,
|
||||
getAvatarUrl: (..._) => {
|
||||
return Avatar.avatarUrlForUser(
|
||||
|
|
Loading…
Reference in New Issue