mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix menu hide on single viewer / liker click.
This commit is contained in:
@@ -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()) {
|
||||
|
Submodule Telegram/lib_base updated: 285527e3df...ab45ad614e
Reference in New Issue
Block a user