From e115c6f6906de5d983b9a351357aa071a37ba658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 19 Dec 2019 16:01:37 +0100 Subject: [PATCH] client: Handle more to-device event types from the client sync stream. --- pantalaimon/client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pantalaimon/client.py b/pantalaimon/client.py index 3f419ef..8023634 100644 --- a/pantalaimon/client.py +++ b/pantalaimon/client.py @@ -811,12 +811,9 @@ class PanClient(AsyncClient): return for event in to_device_events["events"]: - if event.get("type") != "m.room.encrypted": - continue - event = ToDeviceEvent.parse_encrypted_event(event) - if not isinstance(event, OlmEvent): + if not isinstance(event, ToDeviceEvent): continue self.olm.handle_to_device_event(event)