|
|
@ -30,6 +30,7 @@
|
|
|
|
#import <SignalServiceKit/OWSFailedMessagesJob.h>
|
|
|
|
#import <SignalServiceKit/OWSFailedMessagesJob.h>
|
|
|
|
#import <SignalServiceKit/OWSMessageManager.h>
|
|
|
|
#import <SignalServiceKit/OWSMessageManager.h>
|
|
|
|
#import <SignalServiceKit/OWSMessageSender.h>
|
|
|
|
#import <SignalServiceKit/OWSMessageSender.h>
|
|
|
|
|
|
|
|
#import <SignalServiceKit/OWSOrphanedDataCleaner.h>
|
|
|
|
#import <SignalServiceKit/OWSReadReceiptManager.h>
|
|
|
|
#import <SignalServiceKit/OWSReadReceiptManager.h>
|
|
|
|
#import <SignalServiceKit/TSAccountManager.h>
|
|
|
|
#import <SignalServiceKit/TSAccountManager.h>
|
|
|
|
#import <SignalServiceKit/TSDatabaseView.h>
|
|
|
|
#import <SignalServiceKit/TSDatabaseView.h>
|
|
|
@ -855,6 +856,17 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
|
|
|
|
|
|
|
|
|
|
|
|
self.isEnvironmentSetup = YES;
|
|
|
|
self.isEnvironmentSetup = YES;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
|
|
|
// A bug in orphan cleanup could be disastrous so let's only
|
|
|
|
|
|
|
|
// run it in DEBUG builds for a few releases.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// TODO: Release to production once we have analytics.
|
|
|
|
|
|
|
|
// TODO: Orphan cleanup is somewhat expensive - not least in doing a bunch
|
|
|
|
|
|
|
|
// of disk access. We might want to only run it "once per version"
|
|
|
|
|
|
|
|
// or something like that in production.
|
|
|
|
|
|
|
|
[OWSOrphanedDataCleaner auditAndCleanupAsync:nil];
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
[OWSProfileManager.sharedManager fetchLocalUsersProfile];
|
|
|
|
[OWSProfileManager.sharedManager fetchLocalUsersProfile];
|
|
|
|
[[OWSReadReceiptManager sharedManager] prepareCachedValues];
|
|
|
|
[[OWSReadReceiptManager sharedManager] prepareCachedValues];
|
|
|
|
[[Environment getCurrent].contactsManager loadLastKnownContactRecipientIds];
|
|
|
|
[[Environment getCurrent].contactsManager loadLastKnownContactRecipientIds];
|
|
|
|