Fix initial TTL after group creation.

This commit is contained in:
John Preston 2022-12-29 12:59:50 +04:00
parent 071411c8b9
commit 2ee7cc784f
1 changed files with 2 additions and 1 deletions

View File

@ -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;