Fix updating of scheduled messages.

GitOrigin-RevId: 2744c6763bdb1e8fcfbdaa44b6f5f928e8fddbc7
This commit is contained in:
levlam 2020-10-27 18:55:38 +03:00
parent 8d2c2e586e
commit a7e1f29f34

View File

@ -32343,7 +32343,8 @@ bool MessagesManager::update_message(Dialog *d, Message *old_message, unique_ptr
// old_message->is_from_scheduled = new_message->is_from_scheduled;
}
if (update_message_is_pinned(d, old_message, new_message->is_pinned, "update_message")) {
if (!is_scheduled &&
update_message_is_pinned(d, old_message, new_message->is_pinned, "update_message")) {
need_send_update = true;
}