Fix update_active_stories_order.

This commit is contained in:
levlam 2023-06-30 18:21:15 +03:00
parent 5a8f8fbe29
commit a210f47062

View File

@ -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) {