Page MenuHomePhabricator

[SQLite] remove Outbound P2P messages based on `messageID` and `deviceID`
ClosedPublic

Authored by kamil on May 16 2024, 7:14 AM.
Tags
None
Referenced Files
F3525491: D12074.id40595.diff
Mon, Dec 23, 5:15 PM
F3525476: D12074.id.diff
Mon, Dec 23, 5:14 PM
F3525457: D12074.diff
Mon, Dec 23, 5:14 PM
Unknown Object (File)
Mon, Nov 25, 8:21 PM
Unknown Object (File)
Nov 22 2024, 8:46 AM
Unknown Object (File)
Nov 7 2024, 5:00 PM
Unknown Object (File)
Oct 14 2024, 4:58 PM
Unknown Object (File)
Oct 14 2024, 4:58 PM
Subscribers

Details

Summary

After processing the other peer will send only messageID - not full OutboundP2PMessage.

Depends on D12071

Test Plan

Tests

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
1149 ↗(On Diff #40289)

debugging leftover

kamil published this revision for review.May 17 2024, 3:23 AM
kamil added inline comments.
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2149–2152 ↗(On Diff #40289)

not sure about indentation here

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2149–2152 ↗(On Diff #40289)

The convention is to sue the same SQL formatting conventions as we have on the keyserver. Take a look here: https://github.com/CommE2E/comm/blob/master/keyserver/src/creators/invite-link-creator.js#L158-L164

2159–2161 ↗(On Diff #40289)

Please use SQLiteDataConverters.h

2164–2169 ↗(On Diff #40289)

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