Update lib/pages/settings/blocks/blocks_store.dart
Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
This commit is contained in:
parent
a8d91f7ba8
commit
43bf944924
|
@ -78,9 +78,7 @@ abstract class _BlocksStore with Store {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (res != null &&
|
if (res != null &&
|
||||||
_blockedCommunities!
|
!_blockedCommunities!.any((element) => element.community.id == id)) {
|
||||||
.indexWhere((element) => element.community.id == id) ==
|
|
||||||
-1) {
|
|
||||||
_blockedCommunities!.add(
|
_blockedCommunities!.add(
|
||||||
CommunityBlockStore(
|
CommunityBlockStore(
|
||||||
instanceHost: instanceHost,
|
instanceHost: instanceHost,
|
||||||
|
|
Loading…
Reference in New Issue