Page MenuHomePhabricator

D12796.id42692.diff
No OneTemporary

D12796.id42692.diff

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

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)

Event Timeline