From a210f4706257c83dfca8bc7266c4f64f1a49e5cf Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 30 Jun 2023 18:21:15 +0300 Subject: [PATCH] Fix update_active_stories_order. --- td/telegram/StoryManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {