mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 23:03:10 -06:00
Fix performOutboundPeekUsingServer
This commit is contained in:
parent
814c220d12
commit
be5a4e6adc
|
|
@ -408,8 +408,9 @@ func (r *FederationSenderInternalAPI) performOutboundPeekUsingServer(
|
|||
respState := respPeek.ToRespState()
|
||||
// logrus.Warnf("got respPeek %#v", respPeek)
|
||||
// Send the newly returned state to the roomserver to update our local view.
|
||||
if err = roomserverAPI.SendEventWithRewrite(
|
||||
if err = roomserverAPI.SendEventWithState(
|
||||
ctx, r.rsAPI,
|
||||
roomserverAPI.KindNew,
|
||||
&respState,
|
||||
respPeek.LatestEvent.Headered(respPeek.RoomVersion),
|
||||
nil,
|
||||
|
|
|
|||
Loading…
Reference in a new issue