mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +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:
parent
e6277c0544
commit
ea4ac9db30
@ -413,7 +413,7 @@ public class ConversationItem extends LinearLayout
|
||||
}
|
||||
|
||||
private void setMediaAttributes(MessageRecord messageRecord) {
|
||||
boolean showControls = !messageRecord.isFailed() && (!messageRecord.isOutgoing() || messageRecord.isPending());
|
||||
boolean showControls = !messageRecord.isFailed();
|
||||
|
||||
if (hasSharedContact(messageRecord)) {
|
||||
sharedContactStub.get().setVisibility(VISIBLE);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user