mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 21:32:46 +00:00
Some refactoring
This commit is contained in:
parent
b37b7c70b7
commit
39d66ed9d6
9 changed files with 55 additions and 70 deletions
|
@ -76,9 +76,9 @@ type InputReceiptEventRequest struct {
|
|||
type InputReceiptEventResponse struct{}
|
||||
|
||||
type SigningKeyUpdate struct {
|
||||
MasterKey gomatrixserverlib.CrossSigningKey `json:"master_key"`
|
||||
SelfSigningKey gomatrixserverlib.CrossSigningKey `json:"cross_signing_key"`
|
||||
UserID string `json:"user_id"`
|
||||
MasterKey gomatrixserverlib.CrossSigningForKey `json:"master_key"`
|
||||
SelfSigningKey gomatrixserverlib.CrossSigningForKey `json:"cross_signing_key"`
|
||||
UserID string `json:"user_id"`
|
||||
}
|
||||
|
||||
type InputSigningKeyUpdateRequest struct {
|
||||
|
|
|
@ -91,7 +91,7 @@ func SendSigningKeyUpdate(
|
|||
ctx context.Context,
|
||||
eduAPI EDUServerInputAPI,
|
||||
userID string,
|
||||
masterKey, selfSigningKey gomatrixserverlib.CrossSigningKey,
|
||||
masterKey, selfSigningKey gomatrixserverlib.CrossSigningForKey,
|
||||
) error {
|
||||
request := InputSigningKeyUpdateRequest{
|
||||
SigningKeyUpdate: SigningKeyUpdate{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue