Avoid expected error logging.

This commit is contained in:
levlam 2022-06-06 17:44:38 +03:00
parent 470563c289
commit fc2a95cac6
1 changed files with 1 additions and 1 deletions

View File

@ -4815,7 +4815,7 @@ unique_ptr<MessageContent> get_action_message_content(Td *td, tl_object_ptr<tele
}
auto payment_sent = move_tl_object_as<telegram_api::messageActionPaymentSent>(action);
if (!reply_to_message_id.is_valid()) {
if (reply_to_message_id != MessageId() || payment_sent->invoice_slug_.empty()) {
if (reply_to_message_id != MessageId()) {
LOG(ERROR) << "Receive succesful payment message with " << reply_to_message_id << " in " << owner_dialog_id;
}
reply_to_message_id = MessageId();