2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Support channel link / channel join.

This commit is contained in:
John Preston
2023-12-04 23:06:44 +04:00
parent f508ad5e75
commit 51d5b7bab6
12 changed files with 520 additions and 180 deletions

View File

@@ -314,6 +314,8 @@ void SessionNavigation::showPeerByLink(const PeerByLinkInfo &info) {
peer,
[=](bool) { showPeerByLinkResolved(peer, info); },
true);
} else if (info.joinChannel && peer->isChannel()) {
peer->session().api().joinChannel(peer->asChannel());
} else {
showPeerByLinkResolved(peer, info);
}