From 29acbd58bd240d1e4697958ae939df29fb4865c7 Mon Sep 17 00:00:00 2001 From: realth000 Date: Sat, 28 Sep 2024 06:54:37 +0800 Subject: [PATCH] fix(thread): fix incorrect page loading when changing order with non-first pages Fix loading incorrect number of page when changed thread post order if current page is not the first page. Update current page number info when order changed. --- CHANGELOG.md | 1 + lib/features/thread/view/thread_page.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96bfcf84..0245cf81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,6 +76,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - 帖子:修复部分折叠/展开卡片解析失败的问题。 - 帖子:修复评分内头像加载失败时无显示的问题。 - 帖子:修复在开启倒序浏览帖子时,从通知跳转到帖子后加载下一页的页数错误的问题。 +- 消息:修复在当前页不是第一页的情况下更改浏览顺序时,顺序变更后再加载下一页时页数错误的问题。 - 帖子:修复在开启倒序浏览帖子时,从通知跳转到帖子后无法切换浏览顺序的问题。 - 认证:修复登录页面刷新验证码时布局抖动的问题。 - 统计:修复积分统计中的积分值。 diff --git a/lib/features/thread/view/thread_page.dart b/lib/features/thread/view/thread_page.dart index 805e791f..14fa433d 100644 --- a/lib/features/thread/view/thread_page.dart +++ b/lib/features/thread/view/thread_page.dart @@ -267,6 +267,7 @@ class _ThreadPageState extends State // Update jump page state. context.read().setPageInfo( totalPages: state.totalPages, + currentPage: state.currentPage, ); String? title;