commit 035d4ad971f7d9b07591ceed6659f67b6d79f0e7
parent a49c4e9a450d0238be2827b682d7b570e8124b87
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Wed, 23 Aug 2023 01:36:32 +0200
fix: auto download rule state
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt b/core/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt
@@ -231,7 +231,7 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp
val senderId = conversationMessage.senderId!!
val conversationId = conversationMessage.clientConversationId!!
- if (!forceDownload && canUseRule(senderId)) {
+ if (!forceDownload && !canUseRule(senderId)) {
return
}
@@ -281,7 +281,7 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp
) ?: throw Exception("Friend not found in database")
val authorName = author.usernameForSorting!!
- if (!forceDownload && canUseRule(author.userId!!)) return
+ if (!forceDownload && !canUseRule(author.userId!!)) return
downloadOperaMedia(provideDownloadManagerClient(
pathSuffix = authorName,