diff options
Diffstat (limited to 'roomserver/input/latest_events.go')
-rw-r--r-- | roomserver/input/latest_events.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roomserver/input/latest_events.go b/roomserver/input/latest_events.go index 9a99ad76..4d75daae 100644 --- a/roomserver/input/latest_events.go +++ b/roomserver/input/latest_events.go @@ -253,8 +253,10 @@ func (u *latestEventsUpdater) makeOutputNewRoomEvent() (*api.OutputEvent, error) latestEventIDs[i] = u.latest[i].EventID } - // TODO: Room version here - roomVersion := gomatrixserverlib.RoomVersionV1 + roomVersion, err := u.db.GetRoomVersionForRoom(u.ctx, u.event.RoomID()) + if err != nil { + return nil, err + } ore := api.OutputNewRoomEvent{ Event: u.event.Headered(roomVersion), |