mirror of https://github.com/mautrix/go.git
Plumb event.AccountDataMegolmBackupKey properly
parent
dd925e228b
commit
a36dc59187
|
@ -74,4 +74,5 @@ func init() {
|
|||
event.TypeMap[event.AccountDataCrossSigningUser] = encryptedContent
|
||||
event.TypeMap[event.AccountDataSecretStorageDefaultKey] = reflect.TypeOf(&DefaultSecretStorageKeyContent{})
|
||||
event.TypeMap[event.AccountDataSecretStorageKey] = reflect.TypeOf(&KeyMetadata{})
|
||||
event.TypeMap[event.AccountDataMegolmBackupKey] = reflect.TypeOf(&EncryptedAccountDataEventContent{})
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ func (et *Type) GuessClass() TypeClass {
|
|||
case AccountDataDirectChats.Type, AccountDataPushRules.Type, AccountDataRoomTags.Type,
|
||||
AccountDataSecretStorageKey.Type, AccountDataSecretStorageDefaultKey.Type,
|
||||
AccountDataCrossSigningMaster.Type, AccountDataCrossSigningSelf.Type, AccountDataCrossSigningUser.Type,
|
||||
AccountDataFullyRead.Type:
|
||||
AccountDataFullyRead.Type, AccountDataMegolmBackupKey.Type:
|
||||
return AccountDataEventType
|
||||
case EventRedaction.Type, EventMessage.Type, EventEncrypted.Type, EventReaction.Type, EventSticker.Type,
|
||||
InRoomVerificationStart.Type, InRoomVerificationReady.Type, InRoomVerificationAccept.Type,
|
||||
|
|
Loading…
Reference in New Issue