if the relay just connected send the event

This commit is contained in:
greenart7c3 2024-07-22 07:49:54 -03:00
parent 68fb34a8ad
commit e764ebbcb2
No known key found for this signature in database
GPG Key ID: 885822EED3A26A6D

View File

@ -173,6 +173,10 @@ object Client : RelayPool.Listener {
if (type == Relay.StateType.DISCONNECT || type == Relay.StateType.EOSE) {
latch.countDown()
}
if (type == Relay.StateType.CONNECT) {
Log.d("sendAndWaitForResponse", "${type.name} Sending event to relay ${relay.url} count: ${latch.count}")
relay.sendOverride(signedEvent)
}
Log.d("sendAndWaitForResponse", "onRelayStateChange ${type.name} from relay ${relay.url} count: ${latch.count}")
}