Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492310
D5996.id21742.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
761 B
Referenced Files
None
Subscribers
None
D5996.id21742.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5996: [native/iOS] initialize database on app start
Attached
Detach File
Event Timeline
Log In to Comment