See https://github.com/matrix-org/matrix-react-sdk/pull/8109 We should revert that PR and fix it more properly, or at least make it testable.