mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 06:07:57 -06:00
Cleaned up code, implemented message queue to notify subscribers of document updates.
This commit is contained in:
@@ -34,7 +34,9 @@ class SavedViewCubit extends Cubit<SavedViewState> {
|
||||
Future<void> initialize() async {
|
||||
final views = await _repository.findAll();
|
||||
final values = {for (var element in views) element.id!: element};
|
||||
emit(SavedViewState(value: values, hasLoaded: true));
|
||||
if (!isClosed) {
|
||||
emit(SavedViewState(value: values, hasLoaded: true));
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> reload() => initialize();
|
||||
|
||||
Reference in New Issue
Block a user