Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ client.subscribe([nip04_filter, nip59_filter], None)
|
|
27 |
class NotificationHandler(HandleNotification):
|
28 |
def handle(self, relay_url, subscription_id, event: Event):
|
29 |
print(f"Received new event from {relay_url}: {event.as_json()}")
|
30 |
-
print(event.kind ==
|
31 |
if event.kind().match_enum(KindEnum.ENCRYPTED_DIRECT_MESSAGE()):
|
32 |
print("Decrypting NIP04 event")
|
33 |
try:
|
|
|
27 |
class NotificationHandler(HandleNotification):
|
28 |
def handle(self, relay_url, subscription_id, event: Event):
|
29 |
print(f"Received new event from {relay_url}: {event.as_json()}")
|
30 |
+
print(event.kind == KindEnum.ENCRYPTED_DIRECT_MESSAGE())
|
31 |
if event.kind().match_enum(KindEnum.ENCRYPTED_DIRECT_MESSAGE()):
|
32 |
print("Decrypting NIP04 event")
|
33 |
try:
|