mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-08 20:53:54 +00:00
Show becoming community admin box.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user