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

View file

@ -76,7 +76,7 @@ final class const UserBottomSheet(
downloadFilename: member.displayName ?? userId.localpart,
child: AvatarOrHash(
member.avatarUrl,
member.displayName ?? userId.localpart,
member.displayName ?? userId.localpart!,
dimension: 200,
),
);
@ -231,7 +231,7 @@ final class const UserBottomSheet(
if (editable)
InlineTextField(
value: profile?.displayName,
hint: userId.localpart,
hint: userId.localpart!,
style: textTheme.headlineLarge,
onChanged: profile == null
? null
@ -240,7 +240,7 @@ final class const UserBottomSheet(
)
else
SelectableText(
member.displayName ?? userId.localpart,
member.displayName ?? userId.localpart!,
style: textTheme.headlineLarge,
textAlign: .center,
),
@ -404,7 +404,7 @@ final class const UserBottomSheet(
if (hasDm) {
context.startDirectMessage(
userId,
name: name,
name: name!,
);
} else if (await context
.showAdaptiveSheet<bool>(