fix issue when mentioning room with invalid canonical aliases

This commit is contained in:
Henry Hiles 2026-11-24 12:57:19 -05:00
commit b0d22e5570
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 35 additions and 32 deletions

View file

@ -104,7 +104,7 @@ class const PowerLevelsDiff(
)
.value
?.displayName ??
change.$1.localpart,
change.$1.localpart!,
style: style?.copyWith(
fontWeight: .bold,
color: ref.displaynameColorAt(

View file

@ -34,7 +34,7 @@ class const MembershipRenderer(
[
UserSpan(
context,
content.displayName ?? event.stateKey!.localpart,
content.displayName ?? event.stateKey!.localpart!,
userId: event.stateKey!,
roomId: event.roomId,
recognizer: targetRecognizer,