client: Only try to decrypt m.room.encrypted messages in the sync decryption.

This commit is contained in:
Damir Jelić 2019-05-07 18:38:08 +02:00
parent 7318690e2c
commit 31ab200763

View File

@ -293,6 +293,12 @@ class PanClient(AsyncClient):
continue
for event in room_dict["timeline"]["events"]:
if "type" not in event:
continue
if event["type"] != "m.room.encrypted":
continue
self.pan_decrypt_event(event, room_id, ignore_failures)
return body