Forces an updateFilter at the start of new subs.

This commit is contained in:
Vitor Pamplona
2025-10-02 16:54:34 -04:00
parent c8f51380aa
commit 04f5e8738a
@@ -34,10 +34,6 @@ class NostrClientSubscription(
) : IRelayClientListener {
private val subId = RandomInstance.randomChars(10)
init {
client.subscribe(this)
}
override fun onEvent(
relay: IRelayClient,
subId: String,
@@ -57,4 +53,9 @@ class NostrClientSubscription(
fun updateFilter() = client.openReqSubscription(subId, filter())
fun closeSubscription() = client.close(subId)
init {
client.subscribe(this)
updateFilter()
}
}