chore(base): Use RoomInfo::room_version accessor
@@ -402,9 +402,7 @@ impl MemoryStore {
let make_room_version = || {
self.room_info
.get(room)
- .and_then(|info| {
- info.base_info.create.as_ref().map(|event| event.room_version.clone())
- })
+ .and_then(|info| info.room_version().cloned())
.unwrap_or_else(|| {
tracing::warn!(
"Unable to find the room version for {}, assume version 9",
