Do not hide edit date from bots.

GitOrigin-RevId: bea81ad9437f360908cd02a2fe2d63dce99c2390
This commit is contained in:
levlam 2019-12-23 19:33:57 +03:00
parent 64f73bebff
commit 53ce59d00a

View File

@ -11098,6 +11098,10 @@ std::pair<DialogId, unique_ptr<MessagesManager::Message>> MessagesManager::creat
edit_date = 0;
}
if (hide_edit_date && td_->auth_manager_->is_bot()) {
hide_edit_date = false;
}
int32 ttl = message_info.ttl;
auto content_type = message_info.content->get_type();
bool is_content_secret = is_secret_message_content(ttl, content_type); // should be calculated before TTL is adjusted