2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Show videos in premium preview boxes.

This commit is contained in:
John Preston
2022-06-10 12:03:47 +04:00
parent 1b604bed0b
commit f78b9324dc
10 changed files with 475 additions and 17 deletions

View File

@@ -1353,6 +1353,12 @@ LocationType DocumentData::locationType() const {
: DocumentFileLocation;
}
void DocumentData::forceIsStreamedAnimation() {
type = AnimatedDocument;
_additional = nullptr;
setMaybeSupportsStreaming(true);
}
bool DocumentData::isVoiceMessage() const {
return (type == VoiceDocument);
}