Desenvincular local com somente um local disponivel
This commit is contained in:
parent
d787f8e89c
commit
c73add1695
|
@ -10,7 +10,6 @@ class LocalsLocalDataSourceImpl {
|
|||
Future<void> unlinkLocal() async {
|
||||
await StorageHelper().set(KeychainStorageKey.clientUUID.value, '');
|
||||
await StorageHelper().set(KeychainStorageKey.ownerName.value, '');
|
||||
await StorageHelper().set(KeychainStorageKey.ownerUUID.value, '');
|
||||
await StorageHelper().set(KeychainStorageKey.clientName.value, '');
|
||||
await StorageHelper().set(KeychainStorageKey.ownerName.value, '');
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ class LocalsRemoteDataSourceImpl implements LocalsRemoteDataSource {
|
|||
AuthenticationService.signOut(context);
|
||||
return true;
|
||||
} else if (isUnavailable) {
|
||||
return await LocalUtil.handleUnavailable(context, locals);
|
||||
return await selectLocal(context, response);
|
||||
} else if (isEnabled) {
|
||||
return await LocalUtil.handleEnabled(context, locals[0]);
|
||||
} else if (isUnselected) {
|
||||
|
|
Loading…
Reference in New Issue