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

@ -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,