summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Preston <johnprestonmail@gmail.com>2023-03-15 16:52:37 +0400
committerJohn Preston <johnprestonmail@gmail.com>2023-03-15 16:52:37 +0400
commitba01ba4c33a8428d019f412848c1207adddca7d0 (patch)
tree852af8f27f28c00c64c4a45661ef4ae75eef3626
parent9beb1119561a1545ff02093fa7ee074af9f85649 (diff)
Fix menu hide on single viewer / liker click.
-rw-r--r--Telegram/SourceFiles/history/view/history_view_context_menu.cpp5
m---------Telegram/lib_base0
2 files changed, 4 insertions, 1 deletions
diff --git a/Telegram/SourceFiles/history/view/history_view_context_menu.cpp b/Telegram/SourceFiles/history/view/history_view_context_menu.cpp
index 86d330f041..58a0722bb4 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<HistoryItem*> item,
not_null<Window::SessionController*> controller) {
const auto whoReadIds = std::make_shared<Api::WhoReadList>();
+ 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
-Subproject 285527e3df689d291cae8a1923479da1b4d361d
+Subproject ab45ad614e0ed127e90b401e0835253131e47fa