diff --git a/td/telegram/StoryManager.cpp b/td/telegram/StoryManager.cpp index b8b751884..bb13fbb82 100644 --- a/td/telegram/StoryManager.cpp +++ b/td/telegram/StoryManager.cpp @@ -2207,8 +2207,8 @@ bool StoryManager::update_active_stories_order(DialogId owner_dialog_id, ActiveS int64 new_public_order = 0; if (is_subscribed_to_dialog_stories(owner_dialog_id)) { auto &story_list = story_lists_[are_dialog_stories_hidden(owner_dialog_id)]; - if (DialogDate(active_stories->private_order_, owner_dialog_id) <= story_list.list_last_story_date_) { - new_public_order = active_stories->private_order_; + if (DialogDate(new_private_order, owner_dialog_id) <= story_list.list_last_story_date_) { + new_public_order = new_private_order; } if (active_stories->private_order_ != new_private_order) {