Новый юзкейс удаления хранилищ

This commit is contained in:
2026-04-17 22:28:22 +03:00
parent 51436401da
commit 3455b91bca
7 changed files with 72 additions and 16 deletions

View File

@@ -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)