kopia lustrzana https://github.com/ryukoposting/Signal-Android
Hide "Add as contact" option when no phone number present.
rodzic
87c366223a
commit
fa613557e8
|
@ -164,7 +164,8 @@ sealed class ConversationSettingsViewModel(
|
|||
contactLinkState = when {
|
||||
recipient.isSelf || recipient.isReleaseNotes || recipient.isBlocked -> ContactLinkState.NONE
|
||||
recipient.isSystemContact -> ContactLinkState.OPEN
|
||||
else -> ContactLinkState.ADD
|
||||
recipient.hasE164() -> ContactLinkState.ADD
|
||||
else -> ContactLinkState.NONE
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
|
@ -272,7 +272,7 @@ public final class RecipientBottomSheetDialogFragment extends BottomSheetDialogF
|
|||
buttonStrip.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (recipient.isSystemContact() || recipient.isGroup() || recipient.isSelf() || recipient.isBlocked() || recipient.isReleaseNotes()) {
|
||||
if (recipient.isSystemContact() || recipient.isGroup() || recipient.isSelf() || recipient.isBlocked() || recipient.isReleaseNotes() || !recipient.hasE164()) {
|
||||
addContactButton.setVisibility(View.GONE);
|
||||
} else {
|
||||
addContactButton.setVisibility(View.VISIBLE);
|
||||
|
|
Ładowanie…
Reference in New Issue