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(); }