From e1fad6c7bd900820870e1b0e87e901f0faafcbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 26 Feb 2020 13:33:45 +0100 Subject: [PATCH] client: Don't skip rooms for which we don't know the encryption state. --- pantalaimon/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pantalaimon/client.py b/pantalaimon/client.py index 9d365c6..47ce515 100644 --- a/pantalaimon/client.py +++ b/pantalaimon/client.py @@ -899,8 +899,10 @@ class PanClient(AsyncClient): ) continue except KeyError: - logger.info("Unknown room {} skipping...".format(room_id)) - continue + # We don't know if the room is encrypted or not, probably + # because the client sync stream got to join the room before the + # pan sync stream did. Let's assume that the room is encrypted. + pass for event in room_dict["timeline"]["events"]: if "type" not in event: