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

Method showThread

Telegram/SourceFiles/window/window_session_controller.cpp:1375–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373}
1374
1375void SessionNavigation::showThread(
1376 not_null<Data::Thread*> thread,
1377 MsgId itemId,
1378 const SectionShow &params) {
1379 if (const auto topic = thread->asTopic()) {
1380 showTopic(topic, itemId, params);
1381 } else if (const auto sublist = thread->asSublist()) {
1382 showSublist(sublist, itemId, params);
1383 } else {
1384 showPeerHistory(thread->asHistory(), params, itemId);
1385 }
1386 if (parentController()->activeChatCurrent().thread() == thread) {
1387 parentController()->content()->hideDragForwardInfo();
1388 }
1389}
1390
1391void SessionNavigation::showPeerInfo(
1392 not_null<PeerData*> peer,

Callers 15

MainWidgetMethod · 0.80
setForwardDraftMethod · 0.80
sendPathsMethod · 0.80
filesOrForwardDropMethod · 0.80
WindowForThreadFunction · 0.80
showMethod · 0.80
onClickMethod · 0.80
showCalendarMethod · 0.80
PeerMenuShareContactBoxFunction · 0.80
ShowShareGameBoxFunction · 0.80
chosenRowMethod · 0.80

Calls 7

asTopicMethod · 0.80
asSublistMethod · 0.80
asHistoryMethod · 0.80
activeChatCurrentMethod · 0.80
hideDragForwardInfoMethod · 0.80
threadMethod · 0.45
contentMethod · 0.45

Tested by

no test coverage detected