From 1f3a1e5b3f2c025251eb3d89c71caa1570ed1573 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Sat, 7 Feb 2026 21:06:58 -0800 Subject: [PATCH] Clarify garbage comment about outgoing decryption --- app/packet_processor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/packet_processor.py b/app/packet_processor.py index 51d9135..2fc4869 100644 --- a/app/packet_processor.py +++ b/app/packet_processor.py @@ -354,7 +354,11 @@ async def run_historical_dm_decryption( our_public_key_bytes = derive_public_key(private_key_bytes) for packet_id, packet_data, packet_timestamp in packets: - # Don't pass our_public_key - we want to decrypt both incoming AND outgoing messages. + # Note: passing our_public_key=None means outgoing DMs won't be matched + # by try_decrypt_dm (the inbound check requires src_hash == their_first_byte, + # which fails for our outgoing packets). This is acceptable because outgoing + # DMs are stored directly by the send endpoint. Historical decryption only + # recovers incoming messages. result = try_decrypt_dm( packet_data, private_key_bytes,