Call RPC to get keys of all devices of given user.
Depends on D10749
Call method
Is this the right deviceID to use? We probably should use a device id from the result.
Noticed on line 103 we throw an Error in this case, but it's a little different because we only have one set of keys there, but here are there are multiple. I guess this difference is probably okay
use propper deviceID
not happy with the indentation here but other solutions are not better I think
yeah. that's on purpose to avoid cases when an invalid device's keys in the map cause errors for all
good call, that was mistake
If we're catching what assert throws and replacing it with null, we can simplify it
const validatedKeys = deviceOlmOutboundKeysValidator.is(deviceKeys) ? validatedKeys : null;
but that would require adding some type annotations