kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix paging error on loading new notifications
rodzic
b39b5673dc
commit
b28db1ea84
|
@ -106,12 +106,14 @@ class NotificationsManager extends ChangeNotifier {
|
||||||
final pm = _buildPageManager(
|
final pm = _buildPageManager(
|
||||||
profile,
|
profile,
|
||||||
true,
|
true,
|
||||||
initialPages: [
|
initialPages: read.isEmpty && unread.isEmpty
|
||||||
PagedResponse(
|
? []
|
||||||
<String>[],
|
: [
|
||||||
next: PagingData(minId: highestId),
|
PagedResponse(
|
||||||
)
|
<String>[],
|
||||||
],
|
previous: PagingData(minId: highestId),
|
||||||
|
)
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
final result = await (unread.isEmpty && read.isEmpty
|
final result = await (unread.isEmpty && read.isEmpty
|
||||||
|
@ -133,7 +135,7 @@ class NotificationsManager extends ChangeNotifier {
|
||||||
final pm = _buildPageManager(
|
final pm = _buildPageManager(
|
||||||
profile,
|
profile,
|
||||||
true,
|
true,
|
||||||
initialPages: read.isEmpty
|
initialPages: read.isEmpty && unread.isEmpty
|
||||||
? []
|
? []
|
||||||
: [
|
: [
|
||||||
PagedResponse(
|
PagedResponse(
|
||||||
|
|
Ładowanie…
Reference in New Issue