Add InputInvoice::need_reget.
This commit is contained in:
parent
6a5989eb8b
commit
b10983acfa
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user