mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
Fix makeOutputNewRoomEvent
This commit is contained in:
parent
091e98a2d1
commit
243788878e
|
|
@ -267,8 +267,14 @@ func (u *latestEventsUpdater) makeOutputNewRoomEvent() (*api.OutputEvent, error)
|
|||
return nil, err
|
||||
}
|
||||
|
||||
roomVersion, err := u.db.GetRoomVersionForRoom(context.Background(), u.roomNID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ore := api.OutputNewRoomEvent{
|
||||
Event: eventJSON,
|
||||
RoomVersion: roomVersion,
|
||||
LastSentEventID: u.lastEventIDSent,
|
||||
LatestEventIDs: latestEventIDs,
|
||||
TransactionID: u.transactionID,
|
||||
|
|
|
|||
Loading…
Reference in a new issue