Deleting a wallet while it still has a pending or in-transit transaction leaves the status polling job running with the deleted wallet id. On the next status change the job re-inserts the transaction row and the app crashes with a foreign key constraint error (SQLITE_CONSTRAINT 787), reproduced with a swap and confirmed by a production stack trace. A fix making the polling write path update-only is ready and should land after #843, since both change the same transaction code.
Deleting a wallet while it still has a pending or in-transit transaction leaves the status polling job running with the deleted wallet id. On the next status change the job re-inserts the transaction row and the app crashes with a foreign key constraint error (SQLITE_CONSTRAINT 787), reproduced with a swap and confirmed by a production stack trace. A fix making the polling write path update-only is ready and should land after #843, since both change the same transaction code.