diff --git a/src/github.com/matrix-org/dendrite/clientapi/thirdpartyinvites/thirdpartyinvites.go b/src/github.com/matrix-org/dendrite/clientapi/thirdpartyinvites/thirdpartyinvites.go index def913700..c998a6522 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/thirdpartyinvites/thirdpartyinvites.go +++ b/src/github.com/matrix-org/dendrite/clientapi/thirdpartyinvites/thirdpartyinvites.go @@ -335,11 +335,9 @@ func emit3PIDInviteEvent( DisplayName: res.DisplayName, KeyValidityURL: validityURL, PublicKey: res.PublicKey, + PublicKeys: res.PublicKeys, } - content.PublicKeys = make([]common.PublicKey, len(res.PublicKeys)) - copy(content.PublicKeys, res.PublicKeys) - if err := builder.SetContent(content); err != nil { return err }