Fix compilation error.

This commit is contained in:
levlam 2022-09-14 19:02:49 +03:00
parent 7922df1039
commit e087521b01

View File

@ -4684,7 +4684,7 @@ unique_ptr<MessageContent> dup_message_content(Td *td, DialogId dialog_id, const
if (type == MessageContentDupType::Copy || type == MessageContentDupType::ServerCopy) {
remove_unallowed_entities(td, result->text, dialog_id);
}
return result;
return std::move(result);
}
case MessageContentType::Venue:
return make_unique<MessageVenue>(*static_cast<const MessageVenue *>(content));