Merge branch 'mkirk/show-suggested-contacts-initially' into release/2.37.0

This commit is contained in:
Michael Kirk 2019-03-10 11:27:09 -07:00
commit 1ad3e64e11
1 changed files with 11 additions and 0 deletions

View File

@ -70,6 +70,10 @@ public class OnboardingController: NSObject {
return AppEnvironment.shared.accountManager
}
private var contactsManager: OWSContactsManager {
return Environment.shared.contactsManager
}
private var backup: OWSBackup {
return AppEnvironment.shared.backup
}
@ -162,6 +166,13 @@ public class OnboardingController: NSObject {
Logger.info("")
// At this point, the user has been prompted for contact access
// and has valid service credentials.
// We start the contact fetch/intersection now so that by the time
// they get to HomeView we can show meaningful contact in the suggested
// contact bubble.
contactsManager.requestSystemContactsOnce()
if tsAccountManager.isReregistering() {
showProfileView(fromView: view)
} else {