MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / isAnimation

Method isAnimation

Telegram/SourceFiles/data/data_document.cpp:1806–1814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1804}
1805
1806bool DocumentData::isAnimation() const {
1807 return (type == AnimatedDocument)
1808 || isVideoMessage()
1809 || ((_filename.isEmpty()
1810 || _nameType == Core::NameType::Image
1811 || _nameType == Core::NameType::Video)
1812 && hasMimeType(u"image/gif"_q)
1813 && !(_flags & Flag::StreamingPlaybackFailed));
1814}
1815
1816bool DocumentData::isGifv() const {
1817 return (type == AnimatedDocument)

Callers 15

showMediaPreviewMethod · 0.80
OverlayWidgetMethod · 0.80
countFrameSizeMethod · 0.80
paintMethod · 0.80
showPreviewMethod · 0.80
rebuildPreviewMethod · 0.80
canBeGroupedMethod · 0.80
toPreviewMethod · 0.80
notificationTextMethod · 0.80
pinnedTextSubstringMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected