From 48b4baf79c644a3c212a3ea91d5a6df7571b3c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 10 Jul 2019 15:16:27 +0200 Subject: [PATCH] pantalaimon: Update to nio 0.4. --- pantalaimon/client.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pantalaimon/client.py b/pantalaimon/client.py index 6d48e83..d44aef2 100644 --- a/pantalaimon/client.py +++ b/pantalaimon/client.py @@ -24,6 +24,7 @@ from nio import ( AsyncClient, ClientConfig, EncryptionError, + Event, KeysQueryResponse, KeyVerificationEvent, KeyVerificationKey, @@ -32,7 +33,6 @@ from nio import ( LocalProtocolError, MegolmEvent, RoomContextError, - RoomEncryptedEvent, RoomEncryptedMedia, RoomMessageMedia, RoomMessageText, @@ -621,7 +621,7 @@ class PanClient(AsyncClient): def pan_decrypt_event(self, event_dict, room_id=None, ignore_failures=True): # type: (Dict[Any, Any], Optional[str], bool) -> (bool) - event = RoomEncryptedEvent.parse_event(event_dict) + event = Event.parse_encrypted_event(event_dict) if not isinstance(event, MegolmEvent): logger.warn( diff --git a/setup.py b/setup.py index 398bcbe..04a3e91 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ setup( "prompt_toolkit", "notify2", "typing;python_version<'3.5'", - "matrix-nio[e2e]" + "matrix-nio[e2e] >= 0.4" ], extras_require={ "e2e_search": [