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

Method forumTopicFor

Telegram/SourceFiles/data/data_peer.cpp:1727–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1725}
1726
1727Data::ForumTopic *PeerData::forumTopicFor(MsgId rootId) const {
1728 if (!rootId) {
1729 return nullptr;
1730 } else if (const auto forum = this->forum()) {
1731 return forum->topicFor(rootId);
1732 }
1733 return nullptr;
1734}
1735
1736Data::SavedMessages *PeerData::monoforum() const {
1737 if (const auto channel = asChannel()) {

Callers 15

sharedMediaDoneMethod · 0.80
sendActionMethod · 0.80
sendMessageMethod · 0.80
showMediaOverviewMethod · 0.80
ResolveContextFunction · 0.80
showRepliesForMessageMethod · 0.80
PeerMenuExportTopicFunction · 0.80
NotificationMethod · 0.80
readTillMethod · 0.80
ReplyToForMTPFunction · 0.80
applyMethod · 0.80

Calls 2

forumMethod · 0.95
topicForMethod · 0.80

Tested by

no test coverage detected