mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Added cover frame timestamp to sent videos.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user