mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-09 13:13:52 +00:00
Try showing communities in the chat list.
This commit is contained in:
@@ -3034,6 +3034,14 @@ void SessionController::showPeerHistory(
|
||||
PeerId peerId,
|
||||
const SectionShow ¶ms,
|
||||
MsgId msgId) {
|
||||
if (const auto peer = session().data().peerLoaded(peerId)) {
|
||||
if (const auto channel = peer->asChannel()) {
|
||||
if (channel->isCommunity()) {
|
||||
ShowCommunityBox(this, channel);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
content()->showHistory(peerId, params, msgId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user