commit ccfbc260a0c3e5d60e111aae7ff3fa6335876392
parent 8bf3172ef36ade935c1d1c2b45b3600da42f472d
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Tue, 16 May 2023 22:39:47 +0200

fix anti auto download bug

Diffstat:
Mapp/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt b/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt @@ -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 }