updated deps; updated healthchecks.io integration
This commit is contained in:
3
vendor/maunium.net/go/mautrix/crypto/ssss/client.go
generated
vendored
3
vendor/maunium.net/go/mautrix/crypto/ssss/client.go
generated
vendored
@@ -8,6 +8,7 @@ package ssss
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"maunium.net/go/mautrix"
|
||||
@@ -34,7 +35,7 @@ func (mach *Machine) GetDefaultKeyID(ctx context.Context) (string, error) {
|
||||
var data DefaultSecretStorageKeyContent
|
||||
err := mach.Client.GetAccountData(ctx, event.AccountDataSecretStorageDefaultKey.Type, &data)
|
||||
if err != nil {
|
||||
if httpErr, ok := err.(mautrix.HTTPError); ok && httpErr.RespError != nil && httpErr.RespError.ErrCode == "M_NOT_FOUND" {
|
||||
if httpErr, ok := err.(mautrix.HTTPError); ok && errors.Is(httpErr.RespError, mautrix.MNotFound) {
|
||||
return "", ErrNoDefaultKeyAccountDataEvent
|
||||
}
|
||||
return "", fmt.Errorf("failed to get default key account data from server: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user