From 6777ff51574d7e52acf0f2e4a7152379803311ff Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 18 Jul 2023 17:27:37 +0300 Subject: [PATCH] Don't mark owned stories as read. --- td/telegram/StoryId.h | 4 ---- td/telegram/StoryManager.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/td/telegram/StoryId.h b/td/telegram/StoryId.h index 5e197788b..f04c32dd3 100644 --- a/td/telegram/StoryId.h +++ b/td/telegram/StoryId.h @@ -27,10 +27,6 @@ class StoryId { template ::value>> StoryId(T story_id) = delete; - static constexpr StoryId max() { - return StoryId(std::numeric_limits::max()); - } - static vector get_input_story_ids(const vector &story_ids) { vector input_story_ids; input_story_ids.reserve(story_ids.size()); diff --git a/td/telegram/StoryManager.cpp b/td/telegram/StoryManager.cpp index b3e1763b5..76bff3bc3 100644 --- a/td/telegram/StoryManager.cpp +++ b/td/telegram/StoryManager.cpp @@ -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); - 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]; if (active_stories == nullptr) { LOG(INFO) << "Create active stories for " << owner_dialog_id;