mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Updated the migrations so they can specify whether a configuration sync is required Moved the config sync logic into a MessageSender extension (makes far more sense than AppDelegate) Fixed a bug where the ShareVC was triggering the 'versionMigrationsDidComplete' twice Removed a couple of imports for files that had been deleted
24 lines
510 B
Objective-C
24 lines
510 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef void (^OWSDatabaseMigrationCompletion)(BOOL success, BOOL requiresConfigurationSync);
|
|
|
|
@interface OWSDatabaseMigrationRunner : NSObject
|
|
|
|
/**
|
|
* Run any outstanding version migrations.
|
|
*/
|
|
- (void)runAllOutstandingWithCompletion:(OWSDatabaseMigrationCompletion)completion;
|
|
|
|
/**
|
|
* On new installations, no need to migrate anything.
|
|
*/
|
|
- (void)assumeAllExistingMigrationsRun;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|