Added cover frame timestamp to sent videos.

This commit is contained in:
23rd
2026-08-15 11:49:57 +03:00
parent fab70dede1
commit 03623f080b
4 changed files with 17 additions and 1 deletions

View File

@@ -427,6 +427,10 @@ void DocumentData::setattributes(
_flags |= Flag::SilentVideo;
}
dimensions = QSize(data.vw().v, data.vh().v);
if (const auto info = video()) {
info->startTs = crl::time(base::SafeRound(
data.vvideo_start_ts().value_or_empty() * 1000));
}
}, [&](const MTPDdocumentAttributeAudio &data) {
if (type == FileDocument) {
if (data.is_voice()) {