From 1e10ece916c57cebb82263924b06ee4d0c754ab8 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 29 Aug 2022 07:38:13 +0300 Subject: [PATCH] Keep dialog object inside channelDifferenceTooLong for following logging. --- td/telegram/MessagesManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 7ffbaa485..c5e0cf437 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -38726,10 +38726,10 @@ void MessagesManager::on_get_channel_difference( case telegram_api::updates_channelDifferenceTooLong::ID: { auto difference = move_tl_object_as(difference_ptr); - tl_object_ptr dialog; + telegram_api::dialog *dialog = nullptr; switch (difference->dialog_->get_id()) { case telegram_api::dialog::ID: - dialog = telegram_api::move_object_as(difference->dialog_); + dialog = static_cast(difference->dialog_.get()); break; case telegram_api::dialogFolder::ID: return after_get_channel_difference(dialog_id, false);