Profile: Show message date on files (#6325)

This commit is contained in:
zubiden 2025-10-08 12:33:31 +02:00 committed by Alexander Zinchuk
parent 338354afbe
commit d9485ee326
3 changed files with 2 additions and 5 deletions

View File

@ -36,7 +36,6 @@ type OwnProps = {
isSelectable?: boolean; isSelectable?: boolean;
canAutoLoad?: boolean; canAutoLoad?: boolean;
uploadProgress?: number; uploadProgress?: number;
withDate?: boolean;
datetime?: number; datetime?: number;
className?: string; className?: string;
sender?: string; sender?: string;
@ -62,7 +61,6 @@ const Document = ({
canAutoLoad, canAutoLoad,
autoLoadFileMaxSizeMb, autoLoadFileMaxSizeMb,
uploadProgress, uploadProgress,
withDate,
datetime, datetime,
className, className,
sender, sender,
@ -192,7 +190,7 @@ const Document = ({
name={fileName} name={fileName}
extension={extension} extension={extension}
size={size} size={size}
timestamp={withDate ? datetime || timestamp : undefined} timestamp={datetime || timestamp}
thumbnailDataUri={thumbDataUri} thumbnailDataUri={thumbDataUri}
previewData={localBlobUrl || previewData} previewData={localBlobUrl || previewData}
smaller={smaller} smaller={smaller}

View File

@ -111,7 +111,6 @@ const FileResults: FC<OwnProps & StateProps> = ({
<Document <Document
document={getMessageDocument(message)!} document={getMessageDocument(message)!}
message={message} message={message}
withDate
datetime={message.date} datetime={message.date}
smaller smaller
sender={getSenderName(lang, message, chatsById, usersById)} sender={getSenderName(lang, message, chatsById, usersById)}

View File

@ -848,7 +848,7 @@ const Profile = ({
<Document <Document
key={id} key={id}
document={getMessageDocument(messagesById[id])!} document={getMessageDocument(messagesById[id])!}
withDate datetime={messagesById[id].date}
smaller smaller
className="scroll-item" className="scroll-item"
isDownloading={getIsDownloading(activeDownloads, getMessageDocument(messagesById[id])!)} isDownloading={getIsDownloading(activeDownloads, getMessageDocument(messagesById[id])!)}