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