Page MenuHomePhabricator

D3986.id13002.diff
No OneTemporary

D3986.id13002.diff

diff --git a/native/cpp/CommonCpp/NativeModules/MessageOperationsUtilities/MessageOperationsUtilities.cpp b/native/cpp/CommonCpp/NativeModules/MessageOperationsUtilities/MessageOperationsUtilities.cpp
--- a/native/cpp/CommonCpp/NativeModules/MessageOperationsUtilities/MessageOperationsUtilities.cpp
+++ b/native/cpp/CommonCpp/NativeModules/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, 7:38 AM (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2699046
Default Alt Text
D3986.id13002.diff (1012 B)

Event Timeline