Mark attachment 404's as permanent failures.

This commit is contained in:
Greyson Parrelli
2026-02-20 19:18:51 +00:00
committed by Cody Henthorne
parent 121f0c6134
commit 65a30cf2a7
2 changed files with 9 additions and 3 deletions

View File

@@ -153,7 +153,7 @@ abstract class Attachment(
* Denotes whether the media for the given attachment is no longer available for download.
*/
val isMediaNoLongerAvailableForDownload: Boolean
get() = isPermanentlyFailed && uploadTimestamp.milliseconds > 30.days
get() = isPermanentlyFailed && (System.currentTimeMillis().milliseconds - uploadTimestamp.milliseconds) > 30.days
val isSticker: Boolean
get() = stickerLocator != null