From f560a4366918f1ada07be4c584bbec7acb1255f7 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 17 May 2020 08:16:04 +0000 Subject: [PATCH] Store incoming keys in dummy room if not found --- lib/src/client.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/client.dart b/lib/src/client.dart index 62841f7..6c2a03e 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1408,6 +1408,7 @@ class Client { _pendingToDeviceEvents.add(toDeviceEvent); break; } + room ??= Room(client: this, id: roomId); final String sessionId = toDeviceEvent.content['session_id']; if (toDeviceEvent.type == 'm.room_key' && userDeviceKeys.containsKey(toDeviceEvent.sender) &&