diff --git a/Telegram/SourceFiles/calls/calls_group_call.cpp b/Telegram/SourceFiles/calls/calls_group_call.cpp index 1a3a6c8bf3..2462639484 100644 --- a/Telegram/SourceFiles/calls/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/calls_group_call.cpp @@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "calls/calls_group_common.h" #include "main/main_session.h" #include "api/api_send_progress.h" +#include "api/api_updates.h" #include "apiwrap.h" #include "lang/lang_keys.h" #include "lang/lang_hardcoded.h" @@ -387,8 +388,11 @@ void GroupCall::join(const MTPInputGroupCall &inputCall) { addParticipantsToInstance(); + _peer->session().updates().addActiveChat( + _peerStream.events_starting_with_copy(_peer)); SubscribeToMigration(_peer, _lifetime, [=](not_null group) { _peer = group; + _peerStream.fire_copy(group); }); } diff --git a/Telegram/SourceFiles/calls/calls_group_call.h b/Telegram/SourceFiles/calls/calls_group_call.h index 43dd9b0e28..279654d381 100644 --- a/Telegram/SourceFiles/calls/calls_group_call.h +++ b/Telegram/SourceFiles/calls/calls_group_call.h @@ -280,6 +280,7 @@ private: const not_null _delegate; not_null _peer; // Can change in legacy group migration. + rpl::event_stream _peerStream; not_null _history; // Can change in legacy group migration. MTP::Sender _api; rpl::variable _state = State::Creating;