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

Method saveActiveSubsectionThread

Telegram/SourceFiles/data/data_forum.cpp:297–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void Forum::saveActiveSubsectionThread(not_null<Thread*> thread) {
298 if (const auto topic = thread->asTopic()) {
299 Assert(topic->forum() == this);
300 _activeSubsectionTopic = topic->creating() ? nullptr : topic;
301 } else {
302 Assert(thread == history());
303 _activeSubsectionTopic = nullptr;
304 }
305}
306
307Thread *Forum::activeSubsectionThread() const {
308 return _activeSubsectionTopic;

Callers 1

Calls 3

asTopicMethod · 0.80
forumMethod · 0.45
creatingMethod · 0.45

Tested by

no test coverage detected