Fix initial TTL after group creation.
This commit is contained in:
parent
071411c8b9
commit
2ee7cc784f
|
@ -641,10 +641,11 @@ void GroupInfoBox::createGroup(
|
||||||
MTP_int(_ttlPeriod)
|
MTP_int(_ttlPeriod)
|
||||||
)).done([=](const MTPUpdates &result) {
|
)).done([=](const MTPUpdates &result) {
|
||||||
auto image = _photo->takeResultImage();
|
auto image = _photo->takeResultImage();
|
||||||
|
const auto period = _ttlPeriod;
|
||||||
const auto navigation = _navigation;
|
const auto navigation = _navigation;
|
||||||
|
|
||||||
getDelegate()->hideLayer(); // Destroys 'this'.
|
getDelegate()->hideLayer(); // Destroys 'this'.
|
||||||
ChatCreateDone(navigation, std::move(image), _ttlPeriod, result);
|
ChatCreateDone(navigation, std::move(image), period, result);
|
||||||
}).fail([=](const MTP::Error &error) {
|
}).fail([=](const MTP::Error &error) {
|
||||||
const auto &type = error.type();
|
const auto &type = error.type();
|
||||||
_creationRequestId = 0;
|
_creationRequestId = 0;
|
||||||
|
|
Loading…
Reference in New Issue