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);
|
||||
}
|
||||
|
||||
bool InputInvoice::need_reget() const {
|
||||
return extended_media_.need_reget();
|
||||
}
|
||||
|
||||
bool InputInvoice::has_media_timestamp() const {
|
||||
return extended_media_.has_media_timestamp();
|
||||
}
|
||||
|
@ -83,6 +83,8 @@ struct InputInvoice {
|
||||
|
||||
void delete_thumbnail(Td *td);
|
||||
|
||||
bool need_reget() const;
|
||||
|
||||
bool has_media_timestamp() const;
|
||||
|
||||
const FormattedText *get_caption() const;
|
||||
|
@ -5756,7 +5756,7 @@ bool need_reget_message_content(const MessageContent *content) {
|
||||
}
|
||||
case MessageContentType::Invoice: {
|
||||
const auto *m = static_cast<const MessageInvoice *>(content);
|
||||
return m->input_invoice.extended_media_.need_reget();
|
||||
return m->input_invoice.need_reget();
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user