As per https://github.com/matrix-org/matrix-js-sdk/pull/821 Requires https://github.com/matrix-org/matrix-js-sdk/pull/821