Page MenuHomePhabricator

D3986.diff
No OneTemporary

D3986.diff

diff --git a/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/MessageOperationsUtilities/MessageOperationsUtilities.cpp b/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/MessageOperationsUtilities/MessageOperationsUtilities.cpp
--- a/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/MessageOperationsUtilities/MessageOperationsUtilities.cpp
+++ b/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/MessageOperationsUtilities/MessageOperationsUtilities.cpp
@@ -107,4 +107,17 @@
return clientDBMessageInfos;
}
+void MessageOperationsUtilities::storeMessageInfos(
+ std::string &rawMessageInfosString) {
+ std::vector<ClientDBMessageInfo> clientDBMessageInfos =
+ translateStringToClientDBMessageInfos(rawMessageInfosString);
+ for (const auto &clientDBMessageInfo : clientDBMessageInfos) {
+ DatabaseManager::getQueryExecutor().replaceMessage(
+ clientDBMessageInfo.first);
+ for (const auto &mediaInfo : clientDBMessageInfo.second) {
+ DatabaseManager::getQueryExecutor().replaceMedia(mediaInfo);
+ }
+ }
+}
+
} // namespace comm

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 4:03 AM (19 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698240
Default Alt Text
D3986.diff (1 KB)

Event Timeline