Update lib/pages/settings/blocks/blocks_store.dart

Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
This commit is contained in:
Filip Krawczyk 2021-11-05 23:54:00 +01:00 committed by GitHub
parent 8cf09f2fb5
commit a8d91f7ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ abstract class _BlocksStore with Store {
);
if (res != null &&
_blockedUsers!.indexWhere((element) => element.person.id == id) == -1) {
!_blockedUsers!.any((element) => element.person.id == id)) {
_blockedUsers!.add(
UserBlockStore(
instanceHost: instanceHost,