mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Show community content on the channel info page instead of a box.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user