Inform about join request being sent.

This commit is contained in:
John Preston
2021-10-12 16:50:18 +04:00
parent 3af3f85f82
commit 9e05e44a14
27 changed files with 197 additions and 126 deletions
@@ -553,13 +553,12 @@ SessionController::SessionController(
enableGifPauseReason(GifPauseReason::RoundPlaying);
}
base::ObservableViewer(
session->api().fullPeerUpdated()
) | rpl::start_with_next([=](PeerData *peer) {
if (peer == _showEditPeer) {
_showEditPeer = nullptr;
show(Box<EditPeerInfoBox>(this, peer));
}
session->changes().peerUpdates(
Data::PeerUpdate::Flag::FullInfo
) | rpl::filter([=](const Data::PeerUpdate &update) {
return (update.peer == _showEditPeer);
}) | rpl::start_with_next([=] {
show(Box<EditPeerInfoBox>(this, base::take(_showEditPeer)));
}, lifetime());
session->data().chatsListChanges(