mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 13:33:32 +00:00
Fix paging error on loading new notifications
This commit is contained in:
parent
b39b5673dc
commit
b28db1ea84
1 changed files with 9 additions and 7 deletions
|
@ -106,12 +106,14 @@ class NotificationsManager extends ChangeNotifier {
|
|||
final pm = _buildPageManager(
|
||||
profile,
|
||||
true,
|
||||
initialPages: [
|
||||
PagedResponse(
|
||||
<String>[],
|
||||
next: PagingData(minId: highestId),
|
||||
)
|
||||
],
|
||||
initialPages: read.isEmpty && unread.isEmpty
|
||||
? []
|
||||
: [
|
||||
PagedResponse(
|
||||
<String>[],
|
||||
previous: PagingData(minId: highestId),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
||||
final result = await (unread.isEmpty && read.isEmpty
|
||||
|
@ -133,7 +135,7 @@ class NotificationsManager extends ChangeNotifier {
|
|||
final pm = _buildPageManager(
|
||||
profile,
|
||||
true,
|
||||
initialPages: read.isEmpty
|
||||
initialPages: read.isEmpty && unread.isEmpty
|
||||
? []
|
||||
: [
|
||||
PagedResponse(
|
||||
|
|
Loading…
Reference in a new issue