Add logging of PickMuteBox invocation.

This commit is contained in:
John Preston 2022-04-20 10:03:39 +04:00
parent a5c12065af
commit 2529bd3f44

View file

@ -282,9 +282,13 @@ void FillMuteMenu(
menu->addAction(std::move(item));
}
const auto callback = [=, show = args.show] {
DEBUG_LOG(("Mute Info: PickMuteBox called."));
show->showBox(Box(PickMuteBox, peer));
};
menu->addAction(
tr::lng_mute_menu_duration(tr::now),
[=, show = args.show] { show->showBox(Box(PickMuteBox, peer)); },
callback,
&st::menuIconMuteFor);
menu->addAction(