Fix display name bug

This commit is contained in:
nielsandriesse 2020-09-18 09:19:47 +10:00
parent 4075603714
commit 86ea104e01
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class ProfilePictureView : RelativeLayout {
if (result == null && publicChat != null) {
result = DatabaseFactory.getLokiUserDatabase(context).getServerDisplayName(publicChat.id, publicKey)
}
return result
return result ?: publicKey
}
}
if (recipient.isGroupRecipient) {

View File

@ -59,7 +59,7 @@ class UserView : LinearLayout {
if (result == null && publicChat != null) {
result = DatabaseFactory.getLokiUserDatabase(context).getServerDisplayName(publicChat.id, publicKey)
}
return result
return result ?: publicKey
}
}
val address = user.address.serialize()