HomePhabricator
Diffusion Comm d3a7f01bc912

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

Description

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

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

Reviewers: tomek, marcin

Reviewed By: marcin

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12071

Details

Provenance
kamilAuthored on May 16 2024, 5:28 AM
Reviewer
marcin
Differential Revision
D12071: [SQLite] add query to mark outbound P2P message as sent
Parents
rCOMMf1eee6f0b7f7: [SQLite] add query to set ciphertext for outbound P2P message
Branches
Unknown
Tags
Unknown