mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-18 09:43:39 +00:00
Allocate the map
This commit is contained in:
parent
fba18e8b17
commit
f1155d26bf
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ func (a *KeyInternalAPI) crossSigningKeys(
|
|||
}
|
||||
|
||||
appendSignature := func(originUserID string, originKeyID gomatrixserverlib.KeyID, signature gomatrixserverlib.Base64Bytes) {
|
||||
if key.Signatures == nil {
|
||||
key.Signatures = api.CrossSigningSigMap{}
|
||||
}
|
||||
if _, ok := key.Signatures[originUserID]; !ok {
|
||||
key.Signatures[originUserID] = make(map[gomatrixserverlib.KeyID]gomatrixserverlib.Base64Bytes)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue