mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 01:13:10 -06:00
Don't copy the public keys array
This commit is contained in:
parent
4bc6f64e97
commit
1076719c08
|
|
@ -335,11 +335,9 @@ func emit3PIDInviteEvent(
|
||||||
DisplayName: res.DisplayName,
|
DisplayName: res.DisplayName,
|
||||||
KeyValidityURL: validityURL,
|
KeyValidityURL: validityURL,
|
||||||
PublicKey: res.PublicKey,
|
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 {
|
if err := builder.SetContent(content); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue