mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 04:47:44 +00:00
Fix display name bug
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user