Fix handling of updateShortSentMessage without media.
GitOrigin-RevId: 8b43a406e25de52d78e86f6dc18f8901f30a4d59
This commit is contained in:
parent
15856c0272
commit
8e9da13546
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user