Use recipient display name in recipient bottom sheet.

master
Alan Evans 2020-06-12 11:46:51 -03:00 committed by Greyson Parrelli
parent 93c390c4fc
commit b3a59c3946
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ public final class RecipientBottomSheetDialogFragment extends BottomSheetDialogF
viewModel.getRecipient().observe(getViewLifecycleOwner(), recipient -> {
avatar.setRecipient(recipient);
String name = recipient.getProfileName().toString();
String name = recipient.getDisplayName(requireContext());
fullName.setText(name);
fullName.setVisibility(TextUtils.isEmpty(name) ? View.GONE : View.VISIBLE);