mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-03 00:42:58 +01:00
Add a check for hadIntegrityCheckPerformed() before attempting to copy an attachment to the archive. If the attachment's download has failed (transferState == FAILED), requireMediaName() would throw an IllegalArgumentException because the integrity check was never completed. The fix resets the archive transfer state to NONE and skips, allowing a future successful download to re-trigger archiving.