diff --git a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp index 2fb223b15f..a3885c7eaa 100644 --- a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp @@ -230,6 +230,11 @@ void TopBarWidget::groupCall() { } else { Core::App().calls().startGroupCall(megagroup); } + } else if (const auto chat = peer->asChat()) { + const auto start = [=](not_null megagroup) { + Core::App().calls().startGroupCall(megagroup); + }; + peer->session().api().migrateChat(chat, crl::guard(this, start)); } } } @@ -731,6 +736,8 @@ void TopBarWidget::updateControlsVisibility() { if (const auto peer = _activeChat.key.peer()) { if (const auto megagroup = peer->asMegagroup()) { return megagroup->canManageCall(); + } else if (const auto chat = peer->asChat()) { + return chat->amCreator(); } } return false; diff --git a/Telegram/lib_base b/Telegram/lib_base index 01a7497eb8..69f70b8f47 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit 01a7497eb84abc2353011d7f5dd4a5e6441e6957 +Subproject commit 69f70b8f47a8c0e3bf75a3ae38d39bd1877655d0 diff --git a/cmake b/cmake index 28b11b099a..f29f5e727f 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 28b11b099ad54151f38b7d5c0c00ff9ce12d4674 +Subproject commit f29f5e727f9a4e947ce7cc4456256eb07d3c8c7f