From ef960f6982982ebfc71a7eb9c4f7d19e50b92c37 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 14 Nov 2022 14:38:23 +0000 Subject: [PATCH] Do the same for leave --- federationapi/internal/perform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/internal/perform.go b/federationapi/internal/perform.go index 4220c6a56..603e2a9c9 100644 --- a/federationapi/internal/perform.go +++ b/federationapi/internal/perform.go @@ -562,7 +562,7 @@ func (r *FederationInternalAPI) PerformLeave( // Build the leave event. event, err := respMakeLeave.LeaveEvent.Build( time.Now(), - r.cfg.Matrix.ServerName, + origin, r.cfg.Matrix.KeyID, r.cfg.Matrix.PrivateKey, respMakeLeave.RoomVersion,