Fixed history conf avatar
This commit is contained in:
parent
6e5885dec9
commit
1c9a4924f6
2 changed files with 8 additions and 6 deletions
|
@ -340,7 +340,11 @@ private suspend fun loadContactPictureWithCoil(
|
||||||
textColor: Int = 0
|
textColor: Int = 0
|
||||||
) {
|
) {
|
||||||
val context = imageView.context
|
val context = imageView.context
|
||||||
if (contact != null && !contact.showGroupChatAvatar) {
|
if (contact == null) {
|
||||||
|
imageView.load(R.drawable.icon_single_contact_avatar)
|
||||||
|
} else if (contact.showGroupChatAvatar) {
|
||||||
|
imageView.load(AppCompatResources.getDrawable(context, R.drawable.icon_multiple_contacts_avatar))
|
||||||
|
} else {
|
||||||
val displayName = contact.contact.value?.name ?: contact.displayName.value.orEmpty()
|
val displayName = contact.contact.value?.name ?: contact.displayName.value.orEmpty()
|
||||||
val source = contact.contact.value?.getPictureUri(useThumbnail)
|
val source = contact.contact.value?.getPictureUri(useThumbnail)
|
||||||
|
|
||||||
|
@ -372,10 +376,6 @@ private suspend fun loadContactPictureWithCoil(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else if (contact != null && contact.showGroupChatAvatar) {
|
|
||||||
imageView.load(AppCompatResources.getDrawable(context, R.drawable.icon_multiple_contacts_avatar))
|
|
||||||
} else {
|
|
||||||
imageView.load(R.drawable.icon_single_contact_avatar)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,9 @@
|
||||||
android:layout_height="@dimen/contact_avatar_size"
|
android:layout_height="@dimen/contact_avatar_size"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:contentDescription="@null" />
|
android:contentDescription="@null"
|
||||||
|
android:background="@drawable/generated_avatar_bg"
|
||||||
|
android:src="@drawable/voip_single_contact_avatar" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
|
|
Loading…
Reference in a new issue