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

Method topicFor

Telegram/SourceFiles/data/data_forum.cpp:610–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610ForumTopic *Forum::topicFor(MsgId rootId) {
611 if (!rootId) {
612 return nullptr;
613 }
614 const auto i = _topics.find(rootId);
615 return (i != end(_topics)) ? i->second.get() : nullptr;
616}
617
618ForumTopic *Forum::enforceTopicFor(MsgId rootId) {
619 Expects(rootId != 0);

Callers 15

SessionControllerMethod · 0.80
createSearchRowMethod · 0.80
EditForumTopicBoxFunction · 0.80
forumTopicForMethod · 0.80
feedUpdateMethod · 0.80
applyListMethod · 0.80
ContentMementoMethod · 0.80
setupTopicViewerMethod · 0.80

Calls 2

findMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected