Skip to content

Commit

Permalink
fix(thread): fix incorrect page loading when changing order with
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
realth000 committed Sep 27, 2024
1 parent aaeb41c commit 29acbd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- 帖子:修复部分折叠/展开卡片解析失败的问题。
- 帖子:修复评分内头像加载失败时无显示的问题。
- 帖子:修复在开启倒序浏览帖子时,从通知跳转到帖子后加载下一页的页数错误的问题。
- 消息:修复在当前页不是第一页的情况下更改浏览顺序时,顺序变更后再加载下一页时页数错误的问题。
- 帖子:修复在开启倒序浏览帖子时,从通知跳转到帖子后无法切换浏览顺序的问题。
- 认证:修复登录页面刷新验证码时布局抖动的问题。
- 统计:修复积分统计中的积分值。
Expand Down
1 change: 1 addition & 0 deletions lib/features/thread/view/thread_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ class _ThreadPageState extends State<ThreadPage>
// Update jump page state.
context.read<JumpPageCubit>().setPageInfo(
totalPages: state.totalPages,
currentPage: state.currentPage,
);

String? title;
Expand Down

0 comments on commit 29acbd5

Please sign in to comment.