mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 17:36:59 +01:00
Adds a way to remove everyone but some keys from the list of EOSEs
This commit is contained in:
@@ -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) {
|
||||
users.remove(user)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user