Better support for secret_api::decryptedMessageService8.

GitOrigin-RevId: f3d46446f2dd0ecd0c9b3630ffca6a5cacf6b075
This commit is contained in:
levlam 2018-07-24 20:14:04 +03:00
parent 09ad42fa82
commit ec1ae551d8

View File

@ -983,6 +983,12 @@ Status SecretChatActor::do_inbound_message_decrypted_unchecked(
return status; return status;
} }
if (message->decrypted_message_layer->message_->get_id() == secret_api::decryptedMessageService8::ID) {
auto old = move_tl_object_as<secret_api::decryptedMessageService8>(message->decrypted_message_layer->message_);
message->decrypted_message_layer->message_ =
secret_api::make_object<secret_api::decryptedMessageService>(old->random_id_, std::move(old->action_));
}
// Process ActionResend. // Process ActionResend.
if (message->decrypted_message_layer->message_->get_id() == secret_api::decryptedMessageService::ID) { if (message->decrypted_message_layer->message_->get_id() == secret_api::decryptedMessageService::ID) {
auto *decrypted_message_service = auto *decrypted_message_service =