Don't mark owned stories as read.
This commit is contained in:
parent
a553447ac2
commit
6777ff5157
@ -27,10 +27,6 @@ class StoryId {
|
||||
template <class T, typename = std::enable_if_t<std::is_convertible<T, int32>::value>>
|
||||
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) {
|
||||
vector<int32> input_story_ids;
|
||||
input_story_ids.reserve(story_ids.size());
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user