kopia lustrzana https://gitlab.com/mysocialportal/relatica
Filter out DMs and CRs when determining if newer unread notifications before loading older read notifications since those always return regardless of minimum notfication ID
Fixes Issue #101merge-requests/67/merge
rodzic
2d27918244
commit
691a0e5d90
|
@ -140,7 +140,13 @@ class NotificationsManager extends ChangeNotifier {
|
|||
if (unread.isNotEmpty) {
|
||||
final result =
|
||||
await _loadOlderUnreadNotifications(withListenerNotification);
|
||||
if (result.getValueOrElse(() => []).isNotEmpty) {
|
||||
final nonDmAndConnectionNotifications = result
|
||||
.getValueOrElse(() => [])
|
||||
.where((n) =>
|
||||
n.type != NotificationType.follow_request &&
|
||||
n.type != NotificationType.direct_message)
|
||||
.toList();
|
||||
if (nonDmAndConnectionNotifications.isNotEmpty) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue