mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-24 00:07:47 +00:00
feat: start adding tests and fix dependencies for tests
This commit is contained in:
@@ -100,7 +100,8 @@ class AttachmentDownloadJob(val attachmentID: Long, val databaseMessageID: Long)
|
||||
handleFailure(Error.NoSender, null)
|
||||
return
|
||||
}
|
||||
if (!threadRecipient.isGroupRecipient && (contact?.isTrusted == true || storage.getUserPublicKey() != sender)) {
|
||||
|
||||
if (!storage.shouldAutoDownloadAttachments(threadRecipient)) {
|
||||
// if we aren't receiving a group message, a message from ourselves (self-send) and the contact sending is not trusted:
|
||||
// do not continue, but do not fail
|
||||
return
|
||||
|
Reference in New Issue
Block a user