diff --git a/federationapi/internal/perform.go b/federationapi/internal/perform.go index d60da8f76..4220c6a56 100644 --- a/federationapi/internal/perform.go +++ b/federationapi/internal/perform.go @@ -199,7 +199,7 @@ func (r *FederationInternalAPI) performJoinUsingServer( // Build the join event. event, err := respMakeJoin.JoinEvent.Build( time.Now(), - r.cfg.Matrix.ServerName, + origin, r.cfg.Matrix.KeyID, r.cfg.Matrix.PrivateKey, respMakeJoin.RoomVersion,