Fix sharing browser not updated after unsharing album

This commit is contained in:
Ming Ming 2021-11-24 17:27:23 +08:00
parent 2355f8e8a8
commit 1c63346b0c

View file

@ -216,7 +216,7 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
return;
}
final newItems = state.items
.where((element) => !ev.shares.containsIdentical(element.share))
.where((i) => !ev.shares.contains(i.share))
.toList();
// i love hacks :)
yield (state as dynamic).copyWith(