Show becoming community admin box.

This commit is contained in:
John Preston
2026-06-12 10:22:50 +04:00
parent 502a9d9a71
commit 4980f0068a
6 changed files with 82 additions and 0 deletions
@@ -1593,6 +1593,15 @@ SessionController::SessionController(
}
}, _lifetime);
if (_isPrimary) {
session->data().communityAdminPromotions(
) | rpl::on_next([=](not_null<ChannelData*> community) {
crl::on_main(this, [=] {
ShowCommunityAdminBox(this, community);
});
}, _lifetime);
}
_authedName = session->user()->name();
session->changes().peerUpdates(
Data::PeerUpdate::Flag::FullInfo