Adds playback bar to story viewer

This commit is contained in:
Josh Perez 2022-05-06 15:02:44 -04:00 committed by GitHub
parent 9817946afc
commit 85c8ff76dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 291 additions and 125 deletions

View file

@ -15,6 +15,7 @@ export type Props = {
deletedForEveryone?: boolean;
direction?: 'incoming' | 'outgoing';
i18n: LocalizerType;
isRelativeTime?: boolean;
module?: string;
timestamp: number;
withImageNoCaption?: boolean;
@ -26,6 +27,7 @@ export function MessageTimestamp({
deletedForEveryone,
direction,
i18n,
isRelativeTime,
module,
timestamp,
withImageNoCaption,
@ -49,7 +51,7 @@ export function MessageTimestamp({
)}
timestamp={timestamp}
>
{formatTime(i18n, timestamp, now)}
{formatTime(i18n, timestamp, now, isRelativeTime)}
</Time>
);
}