Fix crashes when mentioning users without display names

This commit is contained in:
Stefan Ceriu 2023-06-06 19:53:01 +03:00
parent c87b8e25e1
commit 743778fd7e
2 changed files with 2 additions and 1 deletions

View file

@ -65,7 +65,7 @@ class PillTextAttachment: NSTextAttachment {
.avatar(url: roomMember.avatarUrl,
string: roomMember.displayname,
matrixId: roomMember.userId),
.text(roomMember.displayname)
.text(roomMember.displayname ?? roomMember.userId)
],
isHighlighted: isHighlighted,
alpha: 1.0,

1
changelog.d/7579.bugfix Normal file
View file

@ -0,0 +1 @@
Fixed crashes when mentioning users without display names