mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-02-11 20:38:49 -05:00
client: Handle more to-device event types from the client sync stream.
This commit is contained in:
parent
f3014ec649
commit
e115c6f690
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user