Add InputInvoice::need_reget.

This commit is contained in:
levlam 2022-09-24 22:45:29 +03:00
parent 6a5989eb8b
commit b10983acfa
3 changed files with 7 additions and 1 deletions

View File

@ -355,6 +355,10 @@ void InputInvoice::delete_thumbnail(Td *td) {
extended_media_.delete_thumbnail(td); extended_media_.delete_thumbnail(td);
} }
bool InputInvoice::need_reget() const {
return extended_media_.need_reget();
}
bool InputInvoice::has_media_timestamp() const { bool InputInvoice::has_media_timestamp() const {
return extended_media_.has_media_timestamp(); return extended_media_.has_media_timestamp();
} }

View File

@ -83,6 +83,8 @@ struct InputInvoice {
void delete_thumbnail(Td *td); void delete_thumbnail(Td *td);
bool need_reget() const;
bool has_media_timestamp() const; bool has_media_timestamp() const;
const FormattedText *get_caption() const; const FormattedText *get_caption() const;

View File

@ -5756,7 +5756,7 @@ bool need_reget_message_content(const MessageContent *content) {
} }
case MessageContentType::Invoice: { case MessageContentType::Invoice: {
const auto *m = static_cast<const MessageInvoice *>(content); const auto *m = static_cast<const MessageInvoice *>(content);
return m->input_invoice.extended_media_.need_reget(); return m->input_invoice.need_reget();
} }
default: default:
return false; return false;