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

Method recountIsImage

Telegram/SourceFiles/data/data_document.cpp:1907–1916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1905}
1906
1907void DocumentData::recountIsImage() {
1908 const auto isImage = !isAnimation()
1909 && !isVideoFile()
1910 && Core::FileIsImage(filename(), mimeString());
1911 if (isImage) {
1912 _flags |= Flag::ImageType;
1913 } else {
1914 _flags &= ~Flag::ImageType;
1915 }
1916}
1917
1918void DocumentData::setRemoteLocation(
1919 int32 dc,

Callers 1

documentApplyFieldsMethod · 0.80

Calls 1

FileIsImageFunction · 0.85

Tested by

no test coverage detected