Merge branch 'krille/fix-store-incoming-keys' into 'master'

Store incoming keys in dummy room if not found

See merge request famedly/famedlysdk!299
This commit is contained in:
Sorunome 2020-05-17 08:16:05 +00:00
commit bb690a22da

View file

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