diff --git a/federationapi/routing/leave.go b/federationapi/routing/leave.go index 636ade748..57d75ad21 100644 --- a/federationapi/routing/leave.go +++ b/federationapi/routing/leave.go @@ -189,9 +189,8 @@ func SendLeave( } } - leaveEvent, err := verImpl.HandleSendLeave( - httpReq.Context(), incomingEvent, request.Origin(), eventID, roomID, rsAPI, keys, - ) + leaveEvent, err := gomatrixserverlib.HandleSendLeave( + httpReq.Context(), incomingEvent, request.Origin(), roomVersion, eventID, roomID, rsAPI, keys) switch e := err.(type) { case nil: