client: Don't skip rooms for which we don't know the encryption state.

This commit is contained in:
Damir Jelić 2020-02-26 13:33:45 +01:00
parent 3014038ce5
commit e1fad6c7bd

View File

@ -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: