fix: or should be and

This commit is contained in:
0x330a 2023-10-06 13:45:49 +11:00
parent 84bc1dcb6b
commit 496acda711
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class AttachmentDownloadJob(val attachmentID: Long, val databaseMessageID: Long)
handleFailure(Error.NoSender, null)
return
}
if (!threadRecipient.isGroupRecipient || (contact?.isTrusted != true && storage.getUserPublicKey() != sender)) {
if (!threadRecipient.isGroupRecipient && contact?.isTrusted != true && storage.getUserPublicKey() != sender) {
// 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
handleFailure(Error.NoSender, null)