| 1373 | } |
| 1374 | |
| 1375 | void SessionNavigation::showThread( |
| 1376 | not_null<Data::Thread*> thread, |
| 1377 | MsgId itemId, |
| 1378 | const SectionShow ¶ms) { |
| 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 | |
| 1391 | void SessionNavigation::showPeerInfo( |
| 1392 | not_null<PeerData*> peer, |
no test coverage detected