mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Fix initial TTL after group creation.
This commit is contained in:
parent
071411c8b9
commit
2ee7cc784f
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue