This stacks on top of PR #4054. The purpose of this PR is to fetch cached contact names in a batch. We can fetch their accounts in a single SQL statement and in the case where many contacts don't have SignalAccounts, this allows us to fetch their phone numbers in on SQL statement as well. There are three cases to consider: 1. There is a signal account: then we just use the full name on the account. 2. There is a contact we can find by phone number. Then use the contact's full name. 3. Fail. Other steps will be needed to determine the full name, such as fetching profiles. |
||
|---|---|---|
| .. | ||
| ContactDiscoveryOperationTest.swift | ||
| ContactsPickerTest.swift | ||
| OWSContactsManagerTest.swift | ||