Build using origin server name during join

This commit is contained in:
Neil Alexander 2022-11-14 14:37:04 +00:00
parent be19b09514
commit 1c9410fc3a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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,