fall back to localpart in a mention when displayName is null
This commit is contained in:
parent
d7006ebeb0
commit
712452f202
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class const UserOverlay(
|
|||
title: Text(displayName ?? member.stateKey!.localpart),
|
||||
subtitle: Text(member.stateKey!),
|
||||
onTap: () => addTag(
|
||||
id: "[@$displayName](matrix:u/${member.stateKey!.substring(1)})",
|
||||
id: "[@${displayName ?? member.stateKey!.localpart}](matrix:u/${member.stateKey!.substring(1)})",
|
||||
name: member.stateKey!.localpart,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue