Allow auto-download for users you've shared your profile with.
This commit is contained in:
parent
86f0456e8c
commit
40b5339ef8
1 changed files with 4 additions and 1 deletions
|
@ -109,7 +109,10 @@ public class AttachmentUtil {
|
|||
try (Cursor messageCursor = DatabaseFactory.getMmsDatabase(context).getMessage(attachment.getMmsId())) {
|
||||
final MessageRecord message = DatabaseFactory.getMmsDatabase(context).readerFor(messageCursor).getNext();
|
||||
|
||||
if (message == null || (!message.getRecipient().isSystemContact() && !message.isOutgoing() && !message.getRecipient().isLocalNumber())) {
|
||||
if (message == null || (!message.getRecipient().isSystemContact() &&
|
||||
!message.getRecipient().isProfileSharing() &&
|
||||
!message.isOutgoing() &&
|
||||
!message.getRecipient().isLocalNumber())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue