Skip to content

Commit

Permalink
Fix handling of updateShortSentMessage without media.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 8b43a406e25de52d78e86f6dc18f8901f30a4d59
  • Loading branch information
levlam committed Sep 4, 2018
1 parent 15856c0 commit 8e9da13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11086,8 +11086,7 @@ void MessagesManager::try_restore_dialog_reply_markup(Dialog *d, const Message *
void MessagesManager::on_update_sent_text_message(int64 random_id,
tl_object_ptr<telegram_api::MessageMedia> message_media,
vector<tl_object_ptr<telegram_api::MessageEntity>> &&entities) {
CHECK(message_media != nullptr);
int32 message_media_id = message_media->get_id();
int32 message_media_id = message_media == nullptr ? telegram_api::messageMediaEmpty::ID : message_media->get_id();
LOG_IF(ERROR, message_media_id != telegram_api::messageMediaWebPage::ID &&
message_media_id != telegram_api::messageMediaEmpty::ID)
<< "Receive non web-page media for text message: " << oneline(to_string(message_media));
Expand Down

0 comments on commit 8e9da13

Please sign in to comment.