mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 16:56:41 +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 closeSubscription() = client.close(subId)
|
||||||
|
|
||||||
|
fun destroy() {
|
||||||
|
client.unsubscribe(this)
|
||||||
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
client.subscribe(this)
|
client.subscribe(this)
|
||||||
updateFilter()
|
updateFilter()
|
||||||
|
|||||||
Reference in New Issue
Block a user