Skip to content

Commit

Permalink
Don't init FileUploadId for PaidMedia.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Oct 31, 2024
1 parent 8b5d845 commit aa17503
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions td/telegram/BusinessConnectionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ struct BusinessConnectionManager::PendingMessage {

void init_file_upload_ids(Td *td) {
CHECK(file_upload_id_ == FileUploadId());
if (content_->get_type() == MessageContentType::PaidMedia) {
return;
}
auto file_id =
get_message_content_any_file_id(content_.get()); // any_file_id, because it could be a photo sent by ID
if (!file_id.is_valid()) {
Expand Down

0 comments on commit aa17503

Please sign in to comment.