Don't mark owned stories as read.

This commit is contained in:
levlam 2023-07-18 17:27:37 +03:00
parent a553447ac2
commit 6777ff5157
2 changed files with 0 additions and 8 deletions

View File

@ -27,10 +27,6 @@ class StoryId {
template <class T, typename = std::enable_if_t<std::is_convertible<T, int32>::value>> template <class T, typename = std::enable_if_t<std::is_convertible<T, int32>::value>>
StoryId(T story_id) = delete; StoryId(T story_id) = delete;
static constexpr StoryId max() {
return StoryId(std::numeric_limits<int32>::max());
}
static vector<int32> get_input_story_ids(const vector<StoryId> &story_ids) { static vector<int32> get_input_story_ids(const vector<StoryId> &story_ids) {
vector<int32> input_story_ids; vector<int32> input_story_ids;
input_story_ids.reserve(story_ids.size()); input_story_ids.reserve(story_ids.size());

View File

@ -2900,10 +2900,6 @@ void StoryManager::on_update_active_stories(DialogId owner_dialog_id, StoryId ma
} }
failed_to_load_active_stories_.erase(owner_dialog_id); failed_to_load_active_stories_.erase(owner_dialog_id);
if (owner_dialog_id == DialogId(td_->contacts_manager_->get_my_id())) {
max_read_story_id = StoryId::max();
}
auto &active_stories = active_stories_[owner_dialog_id]; auto &active_stories = active_stories_[owner_dialog_id];
if (active_stories == nullptr) { if (active_stories == nullptr) {
LOG(INFO) << "Create active stories for " << owner_dialog_id; LOG(INFO) << "Create active stories for " << owner_dialog_id;