Allow saving e164-only contacts to your contacts.

This commit is contained in:
Greyson Parrelli
2025-12-17 15:35:41 -05:00
committed by jeffrey-signal
parent bb674a1539
commit bd084e606c

View File

@@ -144,7 +144,7 @@ class Recipient(
val e164: Optional<String> = Optional.ofNullable(e164Value)
/** Whether or not we should show this user's e164 in the interface. */
val shouldShowE164: Boolean = e164Value.isNotNullOrBlank() && (isSystemContact || phoneNumberSharing == PhoneNumberSharingState.ENABLED)
val shouldShowE164: Boolean = e164Value.isNotNullOrBlank() && (isSystemContact || phoneNumberSharing == PhoneNumberSharingState.ENABLED || (aciValue == null && usernameValue == null))
/** The recipient's email, if present. Emails are only for legacy SMS contacts that were reached via email. */
val email: Optional<String> = Optional.ofNullable(emailValue)