| 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) { |
no test coverage detected