fix anti auto download bug

This commit is contained in:
rhunk 2023-05-16 22:39:47 +02:00
parent 8bf3172ef3
commit ccfbc260a0

View File

@ -247,7 +247,7 @@ class MediaDownloader : Feature("MediaDownloader", loadParams = FeatureLoadParam
val messageId = id.substring(id.lastIndexOf(":") + 1).toLong()
val senderId: String = context.database.getConversationMessageFromId(messageId)!!.sender_id!!
if (context.feature(AntiAutoDownload::class).isUserIgnored(senderId)) {
if (!forceDownload && context.feature(AntiAutoDownload::class).isUserIgnored(senderId)) {
return
}