client: Handle more to-device event types from the client sync stream.

This commit is contained in:
Damir Jelić 2019-12-19 16:01:37 +01:00
parent f3014ec649
commit e115c6f690

View File

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