mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-31 22:32:15 +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) {
|
private void setMediaAttributes(MessageRecord messageRecord) {
|
||||||
boolean showControls = !messageRecord.isFailed() && (!messageRecord.isOutgoing() || messageRecord.isPending());
|
boolean showControls = !messageRecord.isFailed();
|
||||||
|
|
||||||
if (hasSharedContact(messageRecord)) {
|
if (hasSharedContact(messageRecord)) {
|
||||||
sharedContactStub.get().setVisibility(VISIBLE);
|
sharedContactStub.get().setVisibility(VISIBLE);
|
||||||
|
@ -106,7 +106,7 @@ public class AttachmentUtil {
|
|||||||
try (Cursor messageCursor = DatabaseFactory.getMmsDatabase(context).getMessage(attachment.getMmsId())) {
|
try (Cursor messageCursor = DatabaseFactory.getMmsDatabase(context).getMessage(attachment.getMmsId())) {
|
||||||
final MessageRecord message = DatabaseFactory.getMmsDatabase(context).readerFor(messageCursor).getNext();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user