2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show download start date in Downloads section.

This commit is contained in:
John Preston
2022-02-26 19:48:12 +03:00
parent 57f17b7afe
commit 5ddcf402bc
5 changed files with 30 additions and 8 deletions

View File

@@ -920,10 +920,10 @@ bool Voice::updateStatusText() {
Document::Document(
not_null<Delegate*> delegate,
not_null<HistoryItem*> parent,
not_null<DocumentData*> document,
DocumentFields fields,
const style::OverviewFileLayout &st)
: RadialProgressItem(delegate, parent)
, _data(document)
, _data(fields.document)
, _msgl(goToMessageClickHandler(parent))
, _namel(std::make_shared<DocumentOpenClickHandler>(
_data,
@@ -933,7 +933,9 @@ Document::Document(
parent->fullId()))
, _st(st)
, _generic(::Layout::DocumentGenericPreview::Create(_data))
, _date(langDateTime(base::unixtime::parse(_data->date)))
, _date(langDateTime(base::unixtime::parse(fields.dateOverride
? fields.dateOverride
: _data->date)))
, _ext(_generic.ext)
, _datew(st::normalFont->width(_date)) {
_name.setMarkedText(