| 1751 | } |
| 1752 | |
| 1753 | bool PeerData::useSubsectionTabs() const { |
| 1754 | if (const auto bot = asBot()) { |
| 1755 | return bot->isForum(); |
| 1756 | } else if (const auto channel = asChannel()) { |
| 1757 | return channel->useSubsectionTabs(); |
| 1758 | } |
| 1759 | return false; |
| 1760 | } |
| 1761 | |
| 1762 | bool PeerData::displayAsForum() const { |
| 1763 | if (!isForum()) { |
no test coverage detected