mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 12:57:29 +01:00
Offers a way to destroy subscriptions
This commit is contained in:
@@ -54,6 +54,10 @@ class NostrClientSubscription(
|
||||
|
||||
fun closeSubscription() = client.close(subId)
|
||||
|
||||
fun destroy() {
|
||||
client.unsubscribe(this)
|
||||
}
|
||||
|
||||
init {
|
||||
client.subscribe(this)
|
||||
updateFilter()
|
||||
|
||||
Reference in New Issue
Block a user