mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 22:02:46 +00:00
refactor: funnel event creation through room versions (#3060)
In preparation of interfacing up the room version value.
This commit is contained in:
parent
72285b2659
commit
71eeccf34a
21 changed files with 41 additions and 35 deletions
|
@ -232,7 +232,7 @@ func (s *stateSnapshotStatements) BulkSelectMembershipForHistoryVisibility(
|
|||
result[eventID] = ev
|
||||
continue
|
||||
}
|
||||
event, err := gomatrixserverlib.NewEventFromTrustedJSON(evJson, false, roomInfo.RoomVersion)
|
||||
event, err := roomInfo.RoomVersion.NewEventFromTrustedJSON(evJson, false)
|
||||
if err != nil {
|
||||
result[eventID] = &gomatrixserverlib.HeaderedEvent{}
|
||||
// not fatal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue