mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
Fix a bug with guest not getting the name
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
714ed70889
commit
68e95b2ac7
@ -170,6 +170,9 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
|
|||||||
int smallAvatarSize = Math.round(context.getResources().getDimension(R.dimen.small_item_height));
|
int smallAvatarSize = Math.round(context.getResources().getDimension(R.dimen.small_item_height));
|
||||||
|
|
||||||
if (conversation.getLastMessage().getActorType().equals("guests")) {
|
if (conversation.getLastMessage().getActorType().equals("guests")) {
|
||||||
|
if (TextUtils.isEmpty(authorDisplayName)) {
|
||||||
|
authorDisplayName = NextcloudTalkApplication.getSharedApplication().getString(R.string.nc_guest);
|
||||||
|
}
|
||||||
holder.dialogLastMessageUserAvatar.setVisibility(View.VISIBLE);
|
holder.dialogLastMessageUserAvatar.setVisibility(View.VISIBLE);
|
||||||
TextDrawable drawable = TextDrawable.builder().beginConfig().bold()
|
TextDrawable drawable = TextDrawable.builder().beginConfig().bold()
|
||||||
.endConfig().buildRound(String.valueOf(authorDisplayName.charAt(0)),
|
.endConfig().buildRound(String.valueOf(authorDisplayName.charAt(0)),
|
||||||
|
Loading…
Reference in New Issue
Block a user