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

Method addFirstMessage

Telegram/SourceFiles/window/window_peer_menu.cpp:1613–1624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1611}
1612
1613void Filler::addFirstMessage() {
1614 const auto peer = _peer->isMegagroup() ? _peer->asMegagroup() : _peer->asChannel();
1615 if (!peer) {
1616 return;
1617 }
1618 _addAction(tr::lng_go_to_first_message(tr::now), [=] {
1619 App::wnd()->sessionController()->showPeerHistory(
1620 peer,
1621 Window::SectionShow::Way::Forward,
1622 1);
1623 }, &st::menuIconShowInChat);
1624}
1625
1626void Filler::addViewChannel() {
1627 const auto peer = _peer->asChannel();

Callers

nothing calls this directly

Calls 6

wndFunction · 0.85
asMegagroupMethod · 0.80
asChannelMethod · 0.80
isMegagroupMethod · 0.45
showPeerHistoryMethod · 0.45
sessionControllerMethod · 0.45

Tested by

no test coverage detected