Use cumulative state IDs for final event

This commit is contained in:
Neil Alexander 2020-09-08 18:56:46 +01:00
parent f6c4efd4c3
commit 03f939b16f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -69,17 +69,12 @@ func SendEventWithState(
stateIDs = append(stateIDs, outlier.EventID())
}
stateEventIDs := make([]string, len(state.StateEvents))
for i := range state.StateEvents {
stateEventIDs[i] = state.StateEvents[i].EventID()
}
ires = append(ires, InputRoomEvent{
Kind: KindNew,
Event: event,
AuthEventIDs: event.AuthEventIDs(),
HasState: true,
StateEventIDs: stateEventIDs,
StateEventIDs: stateIDs,
})
return SendInputRoomEvents(ctx, rsAPI, ires)