mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
<MessageTimestamp>: make timestamp prop required
This commit is contained in:
@@ -12,7 +12,7 @@ import { Time } from '../Time';
|
||||
|
||||
export type Props = {
|
||||
now: number;
|
||||
timestamp?: number;
|
||||
timestamp: number;
|
||||
module?: string;
|
||||
withImageNoCaption?: boolean;
|
||||
withSticker?: boolean;
|
||||
@@ -30,13 +30,9 @@ export function MessageTimestamp({
|
||||
withImageNoCaption,
|
||||
withSticker,
|
||||
withTapToViewExpired,
|
||||
}: Readonly<Props>): null | ReactElement {
|
||||
}: Readonly<Props>): ReactElement {
|
||||
const moduleName = module || 'module-timestamp';
|
||||
|
||||
if (timestamp === null || timestamp === undefined) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Time
|
||||
className={classNames(
|
||||
|
||||
Reference in New Issue
Block a user