Fixed crash from feature to kick participants from common groups.

This commit is contained in:
23rd
2026-01-06 18:33:19 +03:00
parent 5eeb9e561d
commit 4a1a21bc4f
@@ -340,7 +340,7 @@ void CreateModerateMessagesBox(
if (ModerateCommonGroups.value() || session->supportMode()) {
ProccessCommonGroups(
items,
[=](CommonGroups groups) {
crl::guard(box, [=](CommonGroups groups) {
using namespace Ui;
const auto top = box->addTopButton(st::infoTopBarMenu);
auto &lifetime = top->lifetime();
@@ -362,7 +362,7 @@ void CreateModerateMessagesBox(
const auto point = QPoint(top->width(), top->height());
(*menu)->popup(top->mapToGlobal(point));
});
});
}));
}
using Request = Fn<void(not_null<PeerData*>, not_null<ChannelData*>)>;