mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-06 21:35:46 +01:00
Filter shortcode numbers in externalContact to prevent E164 re-formatting crash.
This commit is contained in:
committed by
Michelle Tang
parent
5d45914a08
commit
ce4d68a20f
@@ -1063,7 +1063,7 @@ class Recipient(
|
||||
} else if (NumberUtil.isValidEmail(identifier)) {
|
||||
SignalDatabase.recipients.getOrInsertFromEmail(identifier)
|
||||
} else {
|
||||
val e164 = SignalE164Util.formatAsE164(identifier) ?: return null
|
||||
val e164 = SignalE164Util.formatNonShortCodeAsE164(identifier) ?: return null
|
||||
SignalDatabase.recipients.getOrInsertFromE164(e164)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user