mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix bug where username may be put in e164 column.
This commit is contained in:
committed by
Cody Henthorne
parent
97c34b889a
commit
1355a4a28d
@@ -34,7 +34,7 @@ sealed class ContactSearchKey {
|
||||
|
||||
data class UnknownRecipientKey(val sectionKey: ContactSearchConfiguration.SectionKey, val query: String) : ContactSearchKey() {
|
||||
override fun requireSelectedContact(): SelectedContact = when (sectionKey) {
|
||||
ContactSearchConfiguration.SectionKey.USERNAME -> SelectedContact.forPhone(null, query)
|
||||
ContactSearchConfiguration.SectionKey.USERNAME -> SelectedContact.forUsername(null, query)
|
||||
ContactSearchConfiguration.SectionKey.PHONE_NUMBER -> SelectedContact.forPhone(null, query)
|
||||
else -> error("Unexpected section for unknown recipient: $sectionKey")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user