forked from Nexus/nexus
fix issue when mentioning room with invalid canonical aliases
This commit is contained in:
parent
720e538dbc
commit
b0d22e5570
3 changed files with 35 additions and 32 deletions
|
|
@ -66,7 +66,7 @@ class BotArgumentSuggestionsController(final ComposerParams composer)
|
|||
),
|
||||
) =>
|
||||
BotArgumentSuggestion(
|
||||
title: displayName ?? userId.localpart,
|
||||
title: displayName ?? userId.localpart!,
|
||||
subtitle: userId,
|
||||
avatar: avatarUrl,
|
||||
text: userId,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class BotCommandsController(final String roomId)
|
|||
) =>
|
||||
BotCommand(
|
||||
sender: sender,
|
||||
botName: displayName ?? sender.localpart,
|
||||
botName: displayName ?? sender.localpart!,
|
||||
botAvatar: avatarUrl,
|
||||
description: description,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -756,7 +756,7 @@ class SettingsSectionsController
|
|||
|
||||
return ListTile(
|
||||
enabled: !saving.active,
|
||||
leading: AvatarOrHash(profile?.avatarUrl, name),
|
||||
leading: AvatarOrHash(profile?.avatarUrl, name!),
|
||||
title: Text(name, overflow: .ellipsis),
|
||||
subtitle: Text(userId, overflow: .ellipsis),
|
||||
onTap: () => context.showAdaptiveSheet(
|
||||
|
|
|
|||
Loading…
Reference in a new issue