mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-02 20:31:21 +02:00
Fix EventTilePreview display names
Because of 91df392a2a79383fa9a8a35cc9e4def6d3d4caab, we now need to additionally set rawDisplayName to properly fake our display name for an event. Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
parent
5e3ad62189
commit
79bf7bee56
@ -102,6 +102,7 @@ export default class EventTilePreview extends React.Component<IProps, IState> {
|
|||||||
// Fake it more
|
// Fake it more
|
||||||
event.sender = {
|
event.sender = {
|
||||||
name: this.props.displayName || this.props.userId,
|
name: this.props.displayName || this.props.userId,
|
||||||
|
rawDisplayName: this.props.displayName,
|
||||||
userId: this.props.userId,
|
userId: this.props.userId,
|
||||||
getAvatarUrl: (..._) => {
|
getAvatarUrl: (..._) => {
|
||||||
return Avatar.avatarUrlForUser(
|
return Avatar.avatarUrlForUser(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user