mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 06:12:45 +00:00
Add EDU server wiring
This commit is contained in:
parent
dcadec88d9
commit
8683f7553f
9 changed files with 105 additions and 0 deletions
|
@ -86,3 +86,20 @@ func SendReceipt(
|
|||
response := InputReceiptEventResponse{}
|
||||
return eduAPI.InputReceiptEvent(ctx, &request, &response)
|
||||
}
|
||||
|
||||
func SendSigningKeyUpdate(
|
||||
ctx context.Context,
|
||||
eduAPI EDUServerInputAPI,
|
||||
userID string,
|
||||
masterKey, selfSigningKey gomatrixserverlib.CrossSigningKey,
|
||||
) error {
|
||||
request := InputSigningKeyUpdateRequest{
|
||||
SigningKeyUpdate: SigningKeyUpdate{
|
||||
MasterKey: masterKey,
|
||||
SelfSigningKey: selfSigningKey,
|
||||
UserID: userID,
|
||||
},
|
||||
}
|
||||
response := InputSigningKeyUpdateResponse{}
|
||||
return eduAPI.InputSigningKeyUpdate(ctx, &request, &response)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue