|
|
|
@ -11,13 +11,8 @@
|
|
|
|
|
#import "OWSFileSystem.h"
|
|
|
|
|
#import "OWSIncomingMessageFinder.h"
|
|
|
|
|
#import "OWSMessageReceiver.h"
|
|
|
|
|
#import "SignalRecipient.h"
|
|
|
|
|
#import "TSAttachmentStream.h"
|
|
|
|
|
#import "TSDatabaseSecondaryIndexes.h"
|
|
|
|
|
#import "TSDatabaseView.h"
|
|
|
|
|
#import "TSInteraction.h"
|
|
|
|
|
#import "TSThread.h"
|
|
|
|
|
#import <YapDatabase/YapDatabaseRelationship.h>
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
@ -110,14 +105,11 @@ NSString *const TSStorageManagerExceptionName_CouldNotCreateDatabaseDirectory
|
|
|
|
|
[TSDatabaseView asyncRegisterThreadSpecialMessagesDatabaseView];
|
|
|
|
|
|
|
|
|
|
// Register extensions which aren't essential for rendering threads async.
|
|
|
|
|
[[OWSIncomingMessageFinder new] asyncRegisterExtension];
|
|
|
|
|
[OWSIncomingMessageFinder asyncRegisterExtensionWithStorageManager:self];
|
|
|
|
|
[TSDatabaseView asyncRegisterSecondaryDevicesDatabaseView];
|
|
|
|
|
[OWSDisappearingMessagesFinder asyncRegisterDatabaseExtensions:self];
|
|
|
|
|
OWSFailedMessagesJob *failedMessagesJob = [[OWSFailedMessagesJob alloc] initWithStorageManager:self];
|
|
|
|
|
[failedMessagesJob asyncRegisterDatabaseExtensions];
|
|
|
|
|
OWSFailedAttachmentDownloadsJob *failedAttachmentDownloadsMessagesJob =
|
|
|
|
|
[[OWSFailedAttachmentDownloadsJob alloc] initWithStorageManager:self];
|
|
|
|
|
[failedAttachmentDownloadsMessagesJob asyncRegisterDatabaseExtensions];
|
|
|
|
|
[OWSFailedMessagesJob asyncRegisterDatabaseExtensionsWithStorageManager:self];
|
|
|
|
|
[OWSFailedAttachmentDownloadsJob asyncRegisterDatabaseExtensionsWithStorageManager:self];
|
|
|
|
|
|
|
|
|
|
// NOTE: [TSDatabaseView asyncRegistrationCompletion] ensures that
|
|
|
|
|
// DatabaseViewRegistrationCompleteNotification is not fired until all
|
|
|
|
|