mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 19:07:40 +00:00
fix: only resume AttachmentDownloadJobs and fix boolean logic on returning early in download job
This commit is contained in:
@@ -76,7 +76,7 @@ class AttachmentDownloadJob(val attachmentID: Long, val databaseMessageID: Long)
|
||||
handleFailure(Error.NoSender, null)
|
||||
return
|
||||
}
|
||||
if (!threadRecipient.isGroupRecipient && (!contact.isTrusted || storage.getUserPublicKey() != sender.address.serialize())) {
|
||||
if (!threadRecipient.isGroupRecipient && !(contact.isTrusted || storage.getUserPublicKey() != sender.address.serialize())) {
|
||||
Log.e("Loki", "Thread isn't a group recipient, or contact isn't trusted or self-send")
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user