mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 14:12:47 +00:00
Some refactoring
This commit is contained in:
parent
b37b7c70b7
commit
39d66ed9d6
9 changed files with 55 additions and 70 deletions
|
@ -221,9 +221,9 @@ func (a *KeyInternalAPI) QueryDeviceMessages(ctx context.Context, req *api.Query
|
|||
|
||||
func (a *KeyInternalAPI) QueryKeys(ctx context.Context, req *api.QueryKeysRequest, res *api.QueryKeysResponse) {
|
||||
res.DeviceKeys = make(map[string]map[string]json.RawMessage)
|
||||
res.MasterKeys = make(map[string]gomatrixserverlib.CrossSigningKey)
|
||||
res.SelfSigningKeys = make(map[string]gomatrixserverlib.CrossSigningKey)
|
||||
res.UserSigningKeys = make(map[string]gomatrixserverlib.CrossSigningKey)
|
||||
res.MasterKeys = make(map[string]gomatrixserverlib.CrossSigningForKey)
|
||||
res.SelfSigningKeys = make(map[string]gomatrixserverlib.CrossSigningForKey)
|
||||
res.UserSigningKeys = make(map[string]gomatrixserverlib.CrossSigningForKey)
|
||||
res.Failures = make(map[string]interface{})
|
||||
|
||||
// get cross-signing keys from the database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue