Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3239635
D13908.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
D13908.diff
View Options
diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
--- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
+++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
@@ -2550,6 +2550,7 @@
SQLiteQueryExecutor::getAllOutboundP2PMessages() const {
std::string query =
"SELECT * FROM outbound_p2p_messages "
+ "WHERE status != 'sent' "
"ORDER BY timestamp;";
SQLiteStatementWrapper preparedSQL(
diff --git a/web/shared-worker/_generated/comm_query_executor.wasm b/web/shared-worker/_generated/comm_query_executor.wasm
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/web/shared-worker/queries/outbound-p2p-message-queries.test.js b/web/shared-worker/queries/outbound-p2p-message-queries.test.js
--- a/web/shared-worker/queries/outbound-p2p-message-queries.test.js
+++ b/web/shared-worker/queries/outbound-p2p-message-queries.test.js
@@ -148,10 +148,10 @@
);
const messages = queryExecutor?.getAllOutboundP2PMessages() ?? [];
- expect(messages.length).toBe(4);
+ expect(messages.length).toBe(3);
expect(
- messages.find(msg => msg.messageID === TEST_MSG_4.messageID)?.status,
- ).toBe('sent');
+ messages.find(msg => msg.messageID === TEST_MSG_4.messageID),
+ ).toBeFalsy();
});
it('should return message by ID', () => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 14, 8:43 AM (16 m, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2490857
Default Alt Text
D13908.diff (1 KB)
Attached To
Mode
D13908: [sqlite] Read Outbound messages with status different than sent
Attached
Detach File
Event Timeline
Log In to Comment