mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-23 20:03:47 +00:00
Fixed issue where self-sends didn't auto download.
1) There was an issue where we wouldn't auto-download group syncs. 2) There was another issue where we didn't show the download controls for messages you sent yourself. Fixed #7920
This commit is contained in:
@@ -106,7 +106,7 @@ 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()) {
|
||||
if (message == null || (!message.getRecipient().isSystemContact() && !message.isOutgoing() && !Util.isOwnNumber(context, message.getRecipient().getAddress()))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user