Page MenuHomePhabricator

D5996.id21742.diff
No OneTemporary

D5996.id21742.diff

diff --git a/native/ios/Comm/AppDelegate.mm b/native/ios/Comm/AppDelegate.mm
--- a/native/ios/Comm/AppDelegate.mm
+++ b/native/ios/Comm/AppDelegate.mm
@@ -41,7 +41,6 @@
#import "GlobalDBSingleton.h"
#import "Logger.h"
#import "MessageOperationsUtilities.h"
-#import "SQLiteQueryExecutor.h"
#import "TemporaryMessageStorage.h"
#import "ThreadOperations.h"
#import "Tools.h"
@@ -304,7 +303,9 @@
throw std::runtime_error(
"Failed to move SQLite database from app group to default location");
}
- comm::SQLiteQueryExecutor::initialize(sqliteFilePath);
+ comm::GlobalDBSingleton::instance.scheduleOrRun([&sqliteFilePath]() {
+ comm::DatabaseManager::initializeQueryExecutor(sqliteFilePath);
+ });
}
- (void)moveMessagesToDatabase {

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 11:02 PM (59 m, 47 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2678116
Default Alt Text
D5996.id21742.diff (761 B)

Event Timeline