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

Function HasCustomTopBar

Telegram/SourceFiles/info/info_wrap_widget.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69[[nodiscard]] bool HasCustomTopBar(not_null<const Controller*> controller) {
70 const auto section = controller->section();
71 return (section.type() == Section::Type::BotStarRef)
72 || (section.type() == Section::Type::Profile)
73 || ((section.type() == Section::Type::Settings)
74 && section.settingsType()->hasCustomTopBar())
75 || (section.type() == Section::Type::Stories
76 && controller->key().storiesAlbumId() != Stories::ArchiveId()
77 && controller->key().storiesPeer()
78 && controller->key().storiesPeer()->isSelf());
79}
80
81[[nodiscard]] Fn<Ui::StringWithNumbers(int)> SelectedTitleForMedia(
82 Section::MediaType type) {

Callers 2

setupTopMethod · 0.85
showNewContentMethod · 0.85

Calls 9

ArchiveIdFunction · 0.85
settingsTypeMethod · 0.80
isSelfMethod · 0.80
sectionMethod · 0.45
typeMethod · 0.45
hasCustomTopBarMethod · 0.45
storiesAlbumIdMethod · 0.45
keyMethod · 0.45
storiesPeerMethod · 0.45

Tested by

no test coverage detected