mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
client: Only try to decrypt m.room.encrypted messages in the sync decryption.
This commit is contained in:
parent
7318690e2c
commit
31ab200763
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user