Use given event kind when sending auth/state events

This commit is contained in:
Neil Alexander 2022-01-21 13:44:39 +00:00
parent 75cfec95e2
commit 089d64d271
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -63,7 +63,7 @@ func SendEventWithState(
continue continue
} }
ires = append(ires, InputRoomEvent{ ires = append(ires, InputRoomEvent{
Kind: KindOutlier, Kind: kind,
Event: outlier.Headered(event.RoomVersion), Event: outlier.Headered(event.RoomVersion),
Origin: origin, Origin: origin,
AuthEventIDs: outlier.AuthEventIDs(), AuthEventIDs: outlier.AuthEventIDs(),