Show community content on the channel info page instead of a box.

This commit is contained in:
John Preston
2026-06-15 22:17:26 +04:00
parent 271c9df754
commit c6d51dfeb9
10 changed files with 226 additions and 29 deletions
@@ -2757,7 +2757,7 @@ bool SessionController::canShowSeparateWindow(SeparateId id) const {
void SessionController::showPeer(not_null<PeerData*> peer, MsgId msgId) {
if (const auto channel = peer->asChannel()) {
if (channel->isCommunity()) {
ShowCommunityBox(this, channel);
showPeerInfo(channel, SectionShow());
return;
}
}
@@ -3089,7 +3089,7 @@ void SessionController::showPeerHistory(
if (const auto peer = session().data().peerLoaded(peerId)) {
if (const auto channel = peer->asChannel()) {
if (channel->isCommunity()) {
ShowCommunityBox(this, channel);
showPeerInfo(channel, SectionShow());
return;
}
}