Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3522980
D3986.id13956.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3986.id13956.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 8:01 AM (20 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698240
Default Alt Text
D3986.id13956.diff (1 KB)
Attached To
Mode
D3986: Implement function to store SQLite database entities from raw notification string in SQLite database
Attached
Detach File
Event Timeline
Log In to Comment