From 2ee7cc784f2e902742104655568bc770b04d448b Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 29 Dec 2022 12:59:50 +0400 Subject: [PATCH] Fix initial TTL after group creation. --- Telegram/SourceFiles/boxes/add_contact_box.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/add_contact_box.cpp b/Telegram/SourceFiles/boxes/add_contact_box.cpp index 16971dc05c..66dac7ddd0 100644 --- a/Telegram/SourceFiles/boxes/add_contact_box.cpp +++ b/Telegram/SourceFiles/boxes/add_contact_box.cpp @@ -641,10 +641,11 @@ void GroupInfoBox::createGroup( MTP_int(_ttlPeriod) )).done([=](const MTPUpdates &result) { auto image = _photo->takeResultImage(); + const auto period = _ttlPeriod; const auto navigation = _navigation; getDelegate()->hideLayer(); // Destroys 'this'. - ChatCreateDone(navigation, std::move(image), _ttlPeriod, result); + ChatCreateDone(navigation, std::move(image), period, result); }).fail([=](const MTP::Error &error) { const auto &type = error.type(); _creationRequestId = 0;