Fix avatars not working

This commit is contained in:
moezbhatti
2019-10-31 00:32:50 -04:00
committed by Moez Bhatti
parent 9d08be9a56
commit 323c5f246f
@@ -94,7 +94,7 @@ class AvatarView @JvmOverloads constructor(
lookupKey = contact?.lookupKey
name = contact?.name
// If a contactAddress has been given, we use it. Use the contact address otherwise.
address = contactAddress ?: contact?.numbers?.firstOrNull()?.address
address = contactAddress?.takeIf { it.isNotEmpty() } ?: contact?.numbers?.firstOrNull()?.address
lastUpdated = contact?.lastUpdate
updateView()
}