forked from Nexus/nexus
fix issue when mentioning room with invalid canonical aliases
This commit is contained in:
parent
720e538dbc
commit
b0d22e5570
2 changed files with 35 additions and 32 deletions
|
|
@ -19,10 +19,10 @@ class const MessageAvatar(
|
|||
context.showUserPopover(event.sender, roomId: event.roomId),
|
||||
child: AvatarOrHash(
|
||||
value.avatarUrl,
|
||||
value.displayName ?? event.sender.localpart,
|
||||
value.displayName ?? event.sender.localpart!,
|
||||
dimension: height,
|
||||
),
|
||||
),
|
||||
_ => AvatarOrHash(null, event.sender.localpart, dimension: height),
|
||||
_ => AvatarOrHash(null, event.sender.localpart!, dimension: height),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class const MessageDisplayname(
|
|||
: null,
|
||||
child: switch ([
|
||||
Text(
|
||||
value?.displayName ?? event.sender.localpart,
|
||||
value?.displayName ?? event.sender.localpart!,
|
||||
style: style ?? .new(color: color, fontWeight: .bold),
|
||||
maxLines: 1,
|
||||
overflow: .ellipsis,
|
||||
|
|
|
|||
Loading…
Reference in a new issue