mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 13:27:47 +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) {
|
fun removeDataFor(user: T) {
|
||||||
users.remove(user)
|
users.remove(user)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user