mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 12:47:35 +00:00
Allow auto-download for users you've shared your profile with.
This commit is contained in:

committed by
Alex Hart

parent
86f0456e8c
commit
40b5339ef8
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user