refactor: prepare for pay check
This commit is contained in:
parent
fddc8a1d22
commit
8ed361230b
1 changed files with 3 additions and 2 deletions
|
|
@ -186,8 +186,9 @@ class NostrClientConnection:
|
||||||
await mark_events_deleted(self.relay_id, NostrFilter(ids=ids))
|
await mark_events_deleted(self.relay_id, NostrFilter(ids=ids))
|
||||||
|
|
||||||
async def _handle_request(self, subscription_id: str, filter: NostrFilter) -> List:
|
async def _handle_request(self, subscription_id: str, filter: NostrFilter) -> List:
|
||||||
if not self.auth_pubkey and self.config.require_auth_filter:
|
if self.config.require_auth_filter:
|
||||||
return [["AUTH", self._current_auth_challenge()]]
|
if not self.auth_pubkey:
|
||||||
|
return [["AUTH", self._current_auth_challenge()]]
|
||||||
|
|
||||||
filter.subscription_id = subscription_id
|
filter.subscription_id = subscription_id
|
||||||
self._remove_filter(subscription_id)
|
self._remove_filter(subscription_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue