Новый юзкейс удаления хранилищ
This commit is contained in:
@@ -89,7 +89,7 @@ class LocalVault(private val ioDispatcher: CoroutineDispatcher, context: Context
|
||||
throw Exception("Not available")
|
||||
|
||||
val curStorages = _storages.value.toMutableList()
|
||||
val index = curStorages.indexOf(storage)
|
||||
val index = curStorages.indexOfFirst { it.uuid == storage.uuid }
|
||||
if(index != -1) {
|
||||
val localStorage = curStorages[index]
|
||||
curStorages.removeAt(index)
|
||||
|
||||
Reference in New Issue
Block a user