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

Function PeerAccessHash

Telegram/SourceFiles/data/data_download_manager.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61[[nodiscard]] uint64 PeerAccessHash(not_null<PeerData*> peer) {
62 if (const auto user = peer->asUser()) {
63 return user->accessHash();
64 } else if (const auto channel = peer->asChannel()) {
65 return channel->accessHash();
66 }
67 return 0;
68}
69
70[[nodiscard]] bool ItemContainsMedia(const DownloadObject &object) {
71 if (const auto iv = object.item->Get<HistoryMessageMediaForInstantView>()) {

Callers 1

addLoadedMethod · 0.85

Calls 3

asUserMethod · 0.80
asChannelMethod · 0.80
accessHashMethod · 0.45

Tested by

no test coverage detected