mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-20 17:00:29 +02:00
avoid dm deadlock
This commit is contained in:
@@ -82,6 +82,8 @@ class Bot:
|
||||
|
||||
def handle_dm(nostr_event):
|
||||
sender = nostr_event.pubkey().to_hex()
|
||||
if sender == self.keys.public_key().to_hex():
|
||||
return
|
||||
|
||||
try:
|
||||
decrypted_text = nip04_decrypt(self.keys.secret_key(), nostr_event.pubkey(), nostr_event.content())
|
||||
|
Reference in New Issue
Block a user