Fix different dates being used when saving attachments.

This commit is contained in:
Cody Henthorne 2022-03-08 09:12:59 -05:00 committed by Alex Hart
parent fdaaa560e7
commit b25cef86ee
2 changed files with 2 additions and 2 deletions

View file

@ -1055,7 +1055,7 @@ public class ConversationFragment extends LoggingFragment implements Multiselect
private void performSave(final MediaMmsMessageRecord message) {
List<SaveAttachmentTask.Attachment> attachments = Stream.of(message.getSlideDeck().getSlides())
.filter(s -> s.getUri() != null && (s.hasImage() || s.hasVideo() || s.hasAudio() || s.hasDocument()))
.map(s -> new SaveAttachmentTask.Attachment(s.getUri(), s.getContentType(), message.getDateReceived(), s.getFileName().orNull()))
.map(s -> new SaveAttachmentTask.Attachment(s.getUri(), s.getContentType(), message.getDateSent(), s.getFileName().orNull()))
.toList();
if (!Util.isEmpty(attachments)) {

View file

@ -51,7 +51,7 @@ object StoryContextMenu {
val saveAttachment = SaveAttachmentTask.Attachment(
uri,
contentType,
System.currentTimeMillis(),
mediaMessageRecord.dateSent,
null
)