mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-12-15 13:11:44 +03:00
show initials avatar for email guests if displayname is set
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
6e3188f1df
commit
8a3f779fdc
1 changed files with 7 additions and 1 deletions
|
@ -206,7 +206,13 @@ class ParticipantItem(
|
||||||
}
|
}
|
||||||
|
|
||||||
Participant.ActorType.EMAILS -> {
|
Participant.ActorType.EMAILS -> {
|
||||||
holder.binding.avatarView.loadMailAvatar(viewThemeUtils)
|
model.displayName?.let {
|
||||||
|
if (TextUtils.isEmpty(it)) {
|
||||||
|
holder.binding.avatarView.loadMailAvatar(viewThemeUtils)
|
||||||
|
} else {
|
||||||
|
holder.binding.avatarView.loadGuestAvatar(user, it, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Participant.ActorType.USERS -> {
|
Participant.ActorType.USERS -> {
|
||||||
|
|
Loading…
Reference in a new issue