diff --git a/Telegram/SourceFiles/history/view/history_view_context_menu.cpp b/Telegram/SourceFiles/history/view/history_view_context_menu.cpp index 86d330f04..58a0722bb 100644 --- a/Telegram/SourceFiles/history/view/history_view_context_menu.cpp +++ b/Telegram/SourceFiles/history/view/history_view_context_menu.cpp @@ -1233,10 +1233,13 @@ void AddWhoReactedAction( not_null item, not_null controller) { const auto whoReadIds = std::make_shared(); + const auto weak = Ui::MakeWeak(menu.get()); const auto participantChosen = [=](uint64 id) { + if (const auto strong = weak.data()) { + strong->hideMenu(); + } controller->showPeerInfo(PeerId(id)); }; - const auto weak = Ui::MakeWeak(menu.get()); const auto showAllChosen = [=, itemId = item->fullId()]{ // Pressing on an item that has a submenu doesn't hide it :( if (const auto strong = weak.data()) { diff --git a/Telegram/lib_base b/Telegram/lib_base index 285527e3d..ab45ad614 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit 285527e3df689d291cae8a1923479da1b4d361d5 +Subproject commit ab45ad614e0ed127e90b401e0835253131e47fa4