mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix initial TTL after group creation.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user