Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3394108
D12796.id42692.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12796.id42692.diff
View Options
diff --git a/native/cpp/CommonCpp/NativeModules/CommCoreModule.h b/native/cpp/CommonCpp/NativeModules/CommCoreModule.h
--- a/native/cpp/CommonCpp/NativeModules/CommCoreModule.h
+++ b/native/cpp/CommonCpp/NativeModules/CommCoreModule.h
@@ -12,6 +12,7 @@
#include "PersistentStorageUtilities/DataStores/EntryStore.h"
#include "PersistentStorageUtilities/DataStores/IntegrityStore.h"
#include "PersistentStorageUtilities/DataStores/KeyserverStore.h"
+#include "PersistentStorageUtilities/DataStores/MessageSearchStore.h"
#include "PersistentStorageUtilities/DataStores/MessageStore.h"
#include "PersistentStorageUtilities/DataStores/ReportStore.h"
#include "PersistentStorageUtilities/DataStores/SyncedMetadataStore.h"
@@ -48,6 +49,7 @@
AuxUserStore auxUserStore;
ThreadActivityStore threadActivityStore;
EntryStore entryStore;
+ MessageSearchStore messageSearchStore;
void
persistCryptoModules(bool persistContentModule, bool persistNotifsModule);
diff --git a/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp b/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
--- a/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
+++ b/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
@@ -449,6 +449,12 @@
storeOpsPtr);
this->appendDBStoreOps(
rt, operations, "entryStoreOperations", this->entryStore, storeOpsPtr);
+ this->appendDBStoreOps(
+ rt,
+ operations,
+ "messageSearchStoreOperations",
+ this->messageSearchStore,
+ storeOpsPtr);
} catch (std::runtime_error &e) {
createOperationsError = e.what();
}
@@ -1743,7 +1749,8 @@
syncedMetadataStore(jsInvoker),
auxUserStore(jsInvoker),
threadActivityStore(jsInvoker),
- entryStore(jsInvoker) {
+ entryStore(jsInvoker),
+ messageSearchStore(jsInvoker) {
GlobalDBSingleton::instance.enableMultithreading();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 5:33 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2605233
Default Alt Text
D12796.id42692.diff (1 KB)
Attached To
Mode
D12796: [native] Add CommCoreModule code for inserting into the search table
Attached
Detach File
Event Timeline
Log In to Comment