Continue conversion of app setup.

pull/1/head
Matthew Chen 8 years ago
parent 076844bfe7
commit 01dfa83bed

@ -28,7 +28,6 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate {
if _isDebugAssertConfiguration() { if _isDebugAssertConfiguration() {
DebugLogger.shared().enableFileLogging() DebugLogger.shared().enableFileLogging()
} else if (OWSPreferences.isLoggingEnabled()) { } else if (OWSPreferences.isLoggingEnabled()) {
// TODO: Consult OWSPreferences.isLoggingEnabled.
DebugLogger.shared().enableFileLogging() DebugLogger.shared().enableFileLogging()
} }
@ -128,7 +127,7 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate {
// We don't need to prod the TSSocketManager in the SAE. // We don't need to prod the TSSocketManager in the SAE.
} }
// TODO: Move this logic into the notification handler for "SAE will appear". // TODO: Do we want to move this logic into the notification handler for "SAE will appear".
if TSAccountManager.isRegistered() { if TSAccountManager.isRegistered() {
DispatchQueue.main.async { [weak self] in DispatchQueue.main.async { [weak self] in
guard let strongSelf = self else { return } guard let strongSelf = self else { return }
@ -171,14 +170,13 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate {
OWSProfileManager.shared().ensureLocalProfileCached() OWSProfileManager.shared().ensureLocalProfileCached()
// TODO:
// self.isEnvironmentSetup = YES;
// We don't need to use OWSOrphanedDataCleaner in the SAE. // We don't need to use OWSOrphanedDataCleaner in the SAE.
//[OWSProfileManager.sharedManager fetchLocalUsersProfile]; OWSProfileManager.shared().fetchLocalUsersProfile()
//[[OWSReadReceiptManager sharedManager] prepareCachedValues];
//[[Environment current].contactsManager loadLastKnownContactRecipientIds]; OWSReadReceiptManager.shared().prepareCachedValues()
Environment.current().contactsManager.loadLastKnownContactRecipientIds()
} }
@objc @objc

Loading…
Cancel
Save