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

Method closeForum

Telegram/SourceFiles/window/window_session_controller.cpp:2200–2215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2198}
2199
2200void SessionController::closeForum() {
2201 if (const auto forum = _shownForum.current()) {
2202 const auto id = windowId();
2203 if (id.type == SeparateType::Forum) {
2204 const auto initial = id.forum();
2205 if (!initial || initial == forum) {
2206 Core::App().closeWindow(_window);
2207 } else {
2208 showForum(initial);
2209 }
2210 return;
2211 }
2212 }
2213 _shownForumLifetime.destroy();
2214 _shownForum = nullptr;
2215}
2216
2217void SessionController::setupPremiumToast() {
2218 rpl::combine(

Callers 11

handleHistoryBackMethod · 0.80
closeChatFromWindowsMethod · 0.80
WidgetMethod · 0.80
setupSwipeBackMethod · 0.80
chosenRowMethod · 0.80
changeOpenedFolderMethod · 0.80
hideChildListMethod · 0.80
escapeMethod · 0.80
searchMessagesMethod · 0.80
cancelSearchMethod · 0.80
backClickedMethod · 0.80

Calls 5

AppClass · 0.85
closeWindowMethod · 0.80
currentMethod · 0.45
forumMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected