Implement room version 6 per [MSC2240](https://github.com/matrix-org/matrix-doc/pull/2240).