fix: cleanup imap and imap_sync records without transport in housekeeping

Previously transports deleted via sync messages left unused `imap` entries.
This commit is contained in:
link2xt
2026-03-26 05:03:30 +01:00
committed by l
parent c8716ad85a
commit b87805ab24
2 changed files with 18 additions and 5 deletions

View File

@@ -243,11 +243,6 @@ impl Context {
Ok((id, add_timestamp))
},
)?;
transaction.execute("DELETE FROM imap WHERE transport_id=?", (transport_id,))?;
transaction.execute(
"DELETE FROM imap_sync WHERE transport_id=?",
(transport_id,),
)?;
// Removal timestamp should not be lower than addition timestamp
// to be accepted by other devices when synced.