Increase approximate entities fix date.

GitOrigin-RevId: dac6e89c9804e74233316c62f23f01c64198965e
This commit is contained in:
levlam 2020-01-17 03:13:18 +03:00
parent cde26abe1e
commit faef50b444

View File

@ -2685,7 +2685,7 @@ FormattedText get_message_text(const ContactsManager *contacts_manager, string m
auto debug_entities = entities;
auto status = fix_formatted_text(message_text, entities, true, skip_new_entities, true, false);
if (status.is_error()) {
if (send_date == 0 || send_date > 1497000000) { // approximate fix date
if (send_date == 0 || send_date > 1579219200) { // approximate fix date
LOG(ERROR) << "Receive error " << status << " while parsing message text from " << source << " with content \""
<< debug_message_text << "\" -> \"" << message_text << "\" sent at " << send_date << " with entities "
<< format::as_array(debug_entities) << " -> " << format::as_array(entities);