twonly-app/rust/src/database/app/migrations/0017_failed_decryption_claims.sql
otsmr 7d850de90d
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled
fix group issue
2026-09-06 04:07:06 +02:00

10 lines
562 B
SQL

-- Records that a claimed message never decrypted.
--
-- The claim is committed before the message is handled, so a redelivery is not
-- processed twice. Without this column a claim left behind by a failed
-- decryption looks exactly like one left by a message that was handled, and the
-- redelivery is dropped -- which is how a peer whose session broke could never
-- reach the decrypt path again, and so never trigger the session reset that
-- would have repaired it.
ALTER TABLE received_receipts
ADD COLUMN decryption_failed INTEGER NOT NULL DEFAULT 0;