|
|
@ -46,12 +46,12 @@ class NotesBloc extends InteractiveBloc implements NotesBlocEvents, NotesBlocSta |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future refresh() async { |
|
|
|
Future refresh() async { |
|
|
|
await requestManager.wrapNextcloud<List<NextcloudNotesNote>, Iterable<NextcloudNotesNote>>( |
|
|
|
await requestManager.wrapNextcloud<List<NextcloudNotesNote>, BuiltList>( |
|
|
|
client.id, |
|
|
|
client.id, |
|
|
|
'notes-notes', |
|
|
|
'notes-notes', |
|
|
|
notes, |
|
|
|
notes, |
|
|
|
() async => client.notes.getNotes(), |
|
|
|
() async => client.notes.getNotes(), |
|
|
|
(final response) => response.toList(), |
|
|
|
List<NextcloudNotesNote>.from, |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|