Adds a way to remove everyone but some keys from the list of EOSEs

This commit is contained in:
Vitor Pamplona
2025-10-17 14:30:13 -04:00
parent 990cca3d64
commit b8d0f057c5

View File

@@ -142,6 +142,14 @@ class EOSEAccountFast<T : Any>(
} }
} }
fun removeEveryoneBut(list: Set<T>) {
users.snapshot().forEach {
if (it.key !in list) {
users.remove(it.key)
}
}
}
fun removeDataFor(user: T) { fun removeDataFor(user: T) {
users.remove(user) users.remove(user)
} }