Moved bunch of arguments for creation of invite links to structure.

This commit is contained in:
23rd
2024-08-06 12:56:45 +03:00
committed by John Preston
parent c8a3b0ab80
commit 75b26b1a85
7 changed files with 51 additions and 65 deletions
@@ -517,10 +517,13 @@ void InviteForbiddenController::send(
};
const auto sendForFull = [=] {
if (!sendLink()) {
_peer->session().api().inviteLinks().create(_peer, [=](auto) {
if (!sendLink()) {
close();
}
_peer->session().api().inviteLinks().create({
_peer,
[=](auto) {
if (!sendLink()) {
close();
}
},
});
}
};