Fix PaymentSuccessful comparison.

This commit is contained in:
levlam 2022-07-14 00:13:52 +03:00
parent 7618c9aa64
commit b8bd39dc6f

View File

@ -3464,8 +3464,8 @@ void merge_message_contents(Td *td, const MessageContent *old_content, MessageCo
old_->telegram_payment_charge_id != new_->telegram_payment_charge_id ||
old_->provider_payment_charge_id != new_->provider_payment_charge_id ||
((old_->order_info != nullptr || new_->order_info != nullptr) &&
(old_->order_info == nullptr || new_->order_info == nullptr || *old_->order_info != *new_->order_info ||
old_->is_recurring != new_->is_recurring || old_->is_first_recurring != new_->is_first_recurring))) {
(old_->order_info == nullptr || new_->order_info == nullptr || *old_->order_info != *new_->order_info)) ||
old_->is_recurring != new_->is_recurring || old_->is_first_recurring != new_->is_first_recurring) {
need_update = true;
}
break;