Hotfix cannot set default identity
This commit is contained in:
@@ -27,9 +27,7 @@ class GetAllIdentitiesInteractor {
|
||||
_identityUtils.sortListIdentities(identitiesResponse.identities!);
|
||||
}
|
||||
yield Right(GetAllIdentitiesSuccess(
|
||||
identitiesResponse.identities
|
||||
?.where((identity) => identity.name?.trim().isNotEmpty == true)
|
||||
.toList(),
|
||||
identitiesResponse.identities,
|
||||
identitiesResponse.state));
|
||||
} catch (exception) {
|
||||
yield Left(GetAllIdentitiesFailure(exception));
|
||||
|
||||
+1
-1
@@ -139,7 +139,7 @@ class IdentitiesController extends BaseController {
|
||||
void _handleGetAllIdentitiesSuccess(GetAllIdentitiesSuccess success) {
|
||||
if (success.identities?.isNotEmpty == true) {
|
||||
final newListIdentities = success.identities!
|
||||
.where((identity) => identity.mayDelete == true)
|
||||
.where((identity) => identity.mayDelete == true && identity.name?.trim().isNotEmpty == true)
|
||||
.toList();
|
||||
listAllIdentities.addAll(newListIdentities);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user