Create chats for received story identifiers.

This commit is contained in:
levlam 2023-07-10 16:39:49 +03:00
parent 2805ecaa66
commit 82b524de0a
2 changed files with 2 additions and 0 deletions

View File

@ -5021,6 +5021,7 @@ unique_ptr<MessageContent> get_message_content(Td *td, FormattedText message,
LOG(ERROR) << "Receive " << actual_story_id << " instead of " << story_id;
}
}
td->messages_manager_->force_create_dialog(dialog_id, "messageMediaStory");
return make_unique<MessageStory>(story_full_id, media->via_mention_);
}
case telegram_api::messageMediaUnsupported::ID:

View File

@ -557,6 +557,7 @@ WebPageId WebPagesManager::on_get_web_page(tl_object_ptr<telegram_api::WebPage>
LOG(ERROR) << "Receive " << actual_story_id << " instead of " << story_id;
}
}
td_->messages_manager_->force_create_dialog(dialog_id, "webPageAttributeStory");
page->story_full_ids.push_back(story_full_id);
break;
}