From 5a17fb3dbb309725ebab723f065108c6e92747f9 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 23 Apr 2020 16:39:27 +0100 Subject: [PATCH] Don't work out invite room state in federation API --- federationapi/routing/invite.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go index 7a80b881a..0aac3ac15 100644 --- a/federationapi/routing/invite.go +++ b/federationapi/routing/invite.go @@ -113,16 +113,6 @@ func Invite( string(cfg.Matrix.ServerName), cfg.Matrix.KeyID, cfg.Matrix.PrivateKey, ) - // Try parsing invite states one by one. This allows us to drop only the invite - // states that are invalid rather than dropping all of them in one go. - inviteStates := []gomatrixserverlib.InviteV2StrippedState{} - for _, isj := range intermediate.InviteRoomState { - var inviteState gomatrixserverlib.InviteV2StrippedState - if err = json.Unmarshal(isj, &inviteState); err == nil { - inviteStates = append(inviteStates, inviteState) - } - } - // Add the invite event to the roomserver. if err = producer.SendInvite( httpReq.Context(),