mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 07:58:34 +00:00
Allow auto-download for users you've shared your profile with.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user