mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 20:22:03 +00: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));
|
||||
|
||||
if (conversation.getLastMessage().getActorType().equals("guests")) {
|
||||
if (TextUtils.isEmpty(authorDisplayName)) {
|
||||
authorDisplayName = NextcloudTalkApplication.getSharedApplication().getString(R.string.nc_guest);
|
||||
}
|
||||
holder.dialogLastMessageUserAvatar.setVisibility(View.VISIBLE);
|
||||
TextDrawable drawable = TextDrawable.builder().beginConfig().bold()
|
||||
.endConfig().buildRound(String.valueOf(authorDisplayName.charAt(0)),
|
||||
|
Loading…
Reference in New Issue
Block a user