diff --git a/packages/neon/neon_notifications/lib/blocs/notifications.dart b/packages/neon/neon_notifications/lib/blocs/notifications.dart index ef9afa44..e80a4433 100644 --- a/packages/neon/neon_notifications/lib/blocs/notifications.dart +++ b/packages/neon/neon_notifications/lib/blocs/notifications.dart @@ -50,15 +50,16 @@ class NotificationsBloc extends InteractiveBloc @override Future refresh() async { - await RequestManager.instance.wrapNextcloud< - List, - NotificationsResponse>( + await RequestManager.instance + .wrapNextcloud, NotificationsEndpointListNotificationsResponseApplicationJson>( _account.id, 'notifications-notifications', notifications, - () async => _account.client.notifications.endpoint.listNotifications(), - (final response) => response.data.ocs.data.toList(), + () async { + final response = await _account.client.notifications.endpoint.listNotifications(); + return response.data; + }, + (final response) => response.ocs.data.toList(), ); }