Page MenuHomePhabricator

D3986.id12541.diff
No OneTemporary

D3986.id12541.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
@@ -108,4 +108,17 @@
return clientDBMessageInfos;
}
+void MessageOperationsUtilities::storeNotification(
+ std::string rawMessageInfoString) {
+ std::vector<ClientDBMessageInfo> clientDBMessageInfos =
+ translateStringToClientDBMessageInfos(rawMessageInfoString);
+ 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:17 AM (18 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698922
Default Alt Text
D3986.id12541.diff (1009 B)

Event Timeline