Media Gallery: Scroll down and into the past

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
Scott Nonnenberg 2024-09-05 07:15:30 +10:00 committed by GitHub
parent 6f83043eb4
commit 0d5a480c1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 844 additions and 887 deletions

View file

@ -181,7 +181,7 @@ export function Lightbox({
const mediaItem = media[selectedIndex];
const { attachment, message, index } = mediaItem;
saveAttachment(attachment, message.sent_at, index + 1);
saveAttachment(attachment, message.sentAt, index + 1);
},
[isViewOnce, media, saveAttachment, selectedIndex]
);
@ -828,7 +828,7 @@ function LightboxHeader({
<div className="Lightbox__header--content">
<div className="Lightbox__header--name">{conversation.title}</div>
<div className="Lightbox__header--timestamp">
{formatDateTimeForAttachment(i18n, message.sent_at ?? now)}
{formatDateTimeForAttachment(i18n, message.sentAt ?? now)}
</div>
</div>
</div>