mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Allow saving e164-only contacts to your contacts.
This commit is contained in:
committed by
jeffrey-signal
parent
bb674a1539
commit
bd084e606c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user