Gyr0MAN commited on
Commit
ca382e0
·
verified ·
1 Parent(s): 9030ee1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 == 4)
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: