Improve warnings about changed MessageForwardInfo.

This commit is contained in:
levlam 2023-01-04 10:49:53 +03:00
parent cde0cc4afd
commit 887ddbd88e

View File

@ -36660,7 +36660,10 @@ bool MessagesManager::update_message(Dialog *d, Message *old_message, unique_ptr
if (replace_legacy) {
return false;
}
if (!is_scheduled && !message_id.is_yet_unsent()) {
if (old_message->forward_info->is_imported != new_message->forward_info->is_imported) {
return true;
}
if (!is_scheduled && !message_id.is_yet_unsent() && !old_message->forward_info->is_imported) {
return true;
}
return !is_forward_info_sender_hidden(new_message->forward_info.get()) &&