mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Show username in all display name locations if only option.
This commit is contained in:
committed by
Alex Hart
parent
c10c64a6a6
commit
5b2c458bcf
@@ -399,7 +399,7 @@ final class GroupMemberListAdapter extends RecyclerView.Adapter<GroupMemberListA
|
||||
|
||||
GroupMemberEntry.PendingMember pendingMember = (GroupMemberEntry.PendingMember) memberEntry;
|
||||
|
||||
bindImageAndText(pendingMember.getInvitee(), pendingMember.getInvitee().getDisplayNameOrUsername(context), pendingMember.getInvitee().getCombinedAboutAndEmoji());
|
||||
bindImageAndText(pendingMember.getInvitee(), pendingMember.getInvitee().getDisplayName(context), pendingMember.getInvitee().getCombinedAboutAndEmoji());
|
||||
bindRecipientClick(pendingMember.getInvitee());
|
||||
|
||||
if (pendingMember.isCancellable() && adminActionsListener != null) {
|
||||
|
||||
@@ -162,7 +162,7 @@ public class AddMembersActivity extends PushContactSelectionActivity implements
|
||||
Recipient recipient = Util.firstNonNull(state.getRecipient(), Recipient.UNKNOWN);
|
||||
|
||||
String message = getResources().getQuantityString(R.plurals.AddMembersActivity__add_d_members_to_s, state.getSelectionCount(),
|
||||
recipient.getDisplayNameOrUsername(this), state.getGroupTitle(), state.getSelectionCount());
|
||||
recipient.getDisplayName(this), state.getGroupTitle(), state.getSelectionCount());
|
||||
|
||||
new MaterialAlertDialogBuilder(this)
|
||||
.setMessage(message)
|
||||
|
||||
@@ -47,7 +47,7 @@ public final class AddToGroupViewModel extends ViewModel {
|
||||
SignalExecutors.BOUNDED.execute(() -> {
|
||||
Recipient recipient = Recipient.resolved(recipientId);
|
||||
Recipient groupRecipient = Recipient.resolved(groupRecipientIds.get(0));
|
||||
String recipientName = recipient.getDisplayNameOrUsername(context);
|
||||
String recipientName = recipient.getDisplayName(context);
|
||||
String groupName = groupRecipient.getDisplayName(context);
|
||||
|
||||
if (groupRecipient.getGroupId().get().isV1() && !recipient.hasE164()) {
|
||||
|
||||
@@ -33,7 +33,7 @@ public final class GroupInviteSentDialog {
|
||||
.setTitle(context.getResources().getQuantityString(R.plurals.GroupManagement_invitation_sent, size, size))
|
||||
.setPositiveButton(android.R.string.ok, null);
|
||||
if (size == 1) {
|
||||
builder.setMessage(context.getString(R.string.GroupManagement_invite_single_user, recipients.get(0).getDisplayNameOrUsername(context)));
|
||||
builder.setMessage(context.getString(R.string.GroupManagement_invite_single_user, recipients.get(0).getDisplayName(context)));
|
||||
} else {
|
||||
builder.setMessage(R.string.GroupManagement_invite_multiple_users)
|
||||
.setView(R.layout.dialog_multiple_group_invites_sent);
|
||||
|
||||
Reference in New Issue
Block a user