From 15dc7366e7f9d90f31f96c0b0e23eb975e514e4e Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 13 May 2023 10:27:16 +0200 Subject: [PATCH] nextcloud,neon: Fix toWebDavFiles removing first entry --- packages/neon/neon_files/lib/blocs/browser.dart | 2 +- packages/nextcloud/lib/src/webdav/file.dart | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/neon/neon_files/lib/blocs/browser.dart b/packages/neon/neon_files/lib/blocs/browser.dart index 28b3969b..12b5df0d 100644 --- a/packages/neon/neon_files/lib/blocs/browser.dart +++ b/packages/neon/neon_files/lib/blocs/browser.dart @@ -55,7 +55,7 @@ class FilesBrowserBloc extends InteractiveBloc implements FilesBrowserBlocEvents ocfavorite: true, ), ), - (final response) => response.toWebDavFiles(client.webdav), + (final response) => response.toWebDavFiles(client.webdav).sublist(1), emitEmptyCache: true, ); } diff --git a/packages/nextcloud/lib/src/webdav/file.dart b/packages/nextcloud/lib/src/webdav/file.dart index 066fd482..5f3d8e1f 100644 --- a/packages/nextcloud/lib/src/webdav/file.dart +++ b/packages/nextcloud/lib/src/webdav/file.dart @@ -4,7 +4,6 @@ part of '../../nextcloud.dart'; extension WebDavMultistatusFile on WebDavMultistatus { /// Convert the [WebDavMultistatus] into a [WebDavFile] for easier handling List toWebDavFiles(final WebDavClient client) => responses - .sublist(1) .where((final response) => response.href != null) .map( (final response) => WebDavFile(