Update API scheme on layer 202.

This commit is contained in:
John Preston
2025-04-09 10:28:21 +04:00
parent a569495f5d
commit 2a7aac76d9
14 changed files with 104 additions and 145 deletions
@@ -472,7 +472,7 @@ std::unique_ptr<PeerListRow> InviteContactsController::createRow(
object_ptr<Ui::BoxContent> PrepareInviteBox(
not_null<GroupCall*> call,
Fn<void(TextWithEntities&&)> showToast,
Fn<void(Fn<void(bool)> finished)> shareConferenceLink) {
Fn<void()> shareConferenceLink) {
const auto real = call->lookupReal();
if (!real) {
return nullptr;
@@ -497,8 +497,10 @@ object_ptr<Ui::BoxContent> PrepareInviteBox(
if (conference) {
const auto close = std::make_shared<Fn<void()>>();
const auto shareLink = [=] {
Assert(shareConferenceLink != nullptr);
shareConferenceLink([=](bool ok) { if (ok) (*close)(); });
Expects(shareConferenceLink != nullptr);
shareConferenceLink();
(*close)();
};
auto controller = std::make_unique<ConfInviteController>(
&real->session(),