Page MenuHomePhabricator

[SQLite] add query to mark outbound P2P message as sent
ClosedPublic

Authored by kamil on May 16 2024, 5:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 5:14 PM
Unknown Object (File)
Mon, Dec 23, 5:14 PM
Unknown Object (File)
Mon, Dec 23, 5:14 PM
Unknown Object (File)
Sat, Dec 14, 4:49 AM
Unknown Object (File)
Tue, Nov 26, 3:05 AM
Unknown Object (File)
Mon, Nov 25, 5:26 PM
Unknown Object (File)
Nov 1 2024, 1:45 PM
Unknown Object (File)
Oct 14 2024, 4:58 PM
Subscribers

Details

Summary

We want to mark message as sent to avoid sending this again. Attempt to send message should happen only for encrypted messages, and even if marking as sent fails this is not a problem - this message will be sent but message will be discarded due to not being able to decrypt the same message twice.

Using hardcoded constants in code - for later usage on the JS side I'll introduce type to make it safer.

Depends on D12070

Test Plan

Tests

Diff Detail

Repository
rCOMM Comm
Branch
publish-broadcasting-2
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 17 2024, 3:22 AM
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2222–2224 ↗(On Diff #40284)

Please use SQLiteDataConverters.h

2227–2232 ↗(On Diff #40284)

You can remove those lines - SQLiteStatementWrapper destructor does it automatically.

This revision is now accepted and ready to land.May 23 2024, 8:42 AM