mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed crash from feature to kick participants from common groups.
This commit is contained in:
@@ -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*>)>;
|
||||
|
||||
Reference in New Issue
Block a user