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

@ -46,9 +46,9 @@ function createMediaItem(
attachments: [],
conversationId: '1234',
id: 'image-msg',
received_at: 0,
received_at_ms: Date.now(),
sent_at: Date.now(),
receivedAt: 0,
receivedAtMs: Date.now(),
sentAt: Date.now(),
},
objectURL: '',
...overrideProps,
@ -96,9 +96,9 @@ export function Multimedia(): JSX.Element {
attachments: [],
conversationId: '1234',
id: 'image-msg',
received_at: 1,
received_at_ms: Date.now(),
sent_at: Date.now(),
receivedAt: 1,
receivedAtMs: Date.now(),
sentAt: Date.now(),
},
objectURL: '/fixtures/tina-rolf-269345-unsplash.jpg',
},
@ -114,9 +114,9 @@ export function Multimedia(): JSX.Element {
attachments: [],
conversationId: '1234',
id: 'video-msg',
received_at: 2,
received_at_ms: Date.now(),
sent_at: Date.now(),
receivedAt: 2,
receivedAtMs: Date.now(),
sentAt: Date.now(),
},
objectURL: '/fixtures/pixabay-Soap-Bubble-7141.mp4',
},
@ -153,9 +153,9 @@ export function MissingMedia(): JSX.Element {
attachments: [],
conversationId: '1234',
id: 'image-msg',
received_at: 3,
received_at_ms: Date.now(),
sent_at: Date.now(),
receivedAt: 3,
receivedAtMs: Date.now(),
sentAt: Date.now(),
},
objectURL: undefined,
},