From ec1ae551d8b0550ed8bd54a511af65ae1ca817e1 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 24 Jul 2018 20:14:04 +0300 Subject: [PATCH] Better support for secret_api::decryptedMessageService8. GitOrigin-RevId: f3d46446f2dd0ecd0c9b3630ffca6a5cacf6b075 --- td/telegram/SecretChatActor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/td/telegram/SecretChatActor.cpp b/td/telegram/SecretChatActor.cpp index c916fca84..356d22953 100644 --- a/td/telegram/SecretChatActor.cpp +++ b/td/telegram/SecretChatActor.cpp @@ -983,6 +983,12 @@ Status SecretChatActor::do_inbound_message_decrypted_unchecked( return status; } + if (message->decrypted_message_layer->message_->get_id() == secret_api::decryptedMessageService8::ID) { + auto old = move_tl_object_as(message->decrypted_message_layer->message_); + message->decrypted_message_layer->message_ = + secret_api::make_object(old->random_id_, std::move(old->action_)); + } + // Process ActionResend. if (message->decrypted_message_layer->message_->get_id() == secret_api::decryptedMessageService::ID) { auto *decrypted_message_service =