Page MenuHomePhabricator

D13908.id45791.diff
No OneTemporary

D13908.id45791.diff

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

Mime Type
text/plain
Expires
Fri, Nov 22, 8:45 AM (17 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2533298
Default Alt Text
D13908.id45791.diff (1 KB)

Event Timeline