From 01dfa83bed6bb6632082c041d5d6f1c0fbd31f2e Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 5 Dec 2017 17:13:52 -0500 Subject: [PATCH] Continue conversion of app setup. --- SignalShareExtension/ShareViewController.swift | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/SignalShareExtension/ShareViewController.swift b/SignalShareExtension/ShareViewController.swift index 2917d7696..3d9ac64f9 100644 --- a/SignalShareExtension/ShareViewController.swift +++ b/SignalShareExtension/ShareViewController.swift @@ -28,7 +28,6 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate { if _isDebugAssertConfiguration() { DebugLogger.shared().enableFileLogging() } else if (OWSPreferences.isLoggingEnabled()) { - // TODO: Consult OWSPreferences.isLoggingEnabled. DebugLogger.shared().enableFileLogging() } @@ -128,7 +127,7 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate { // 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() { DispatchQueue.main.async { [weak self] in guard let strongSelf = self else { return } @@ -171,14 +170,13 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate { OWSProfileManager.shared().ensureLocalProfileCached() - // TODO: - // self.isEnvironmentSetup = YES; - // We don't need to use OWSOrphanedDataCleaner in the SAE. - //[OWSProfileManager.sharedManager fetchLocalUsersProfile]; - //[[OWSReadReceiptManager sharedManager] prepareCachedValues]; - //[[Environment current].contactsManager loadLastKnownContactRecipientIds]; + OWSProfileManager.shared().fetchLocalUsersProfile() + + OWSReadReceiptManager.shared().prepareCachedValues() + + Environment.current().contactsManager.loadLastKnownContactRecipientIds() } @objc