Merge pull request #7581 from vector-im/stefan/7579

Fix crashes when mentioning users without display names
This commit is contained in:
Stefan Ceriu
2023-06-07 10:08:07 +03:00
committed by GitHub
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