fix: handle private pending support relationships
Deploy olons-server production / deploy (push) Successful in 3m23s

This commit is contained in:
Your Name
2026-10-20 21:25:19 +08:00
parent 92b5656f3f
commit 5f85472757
3 changed files with 62 additions and 8 deletions
+5
View File
@@ -388,6 +388,11 @@ func IsConflict(err error) bool {
return errors.As(err, &target) && target.Status == http.StatusConflict
}
func IsPermissionDenied(err error) bool {
var target *Error
return errors.As(err, &target) && target.Status == http.StatusForbidden
}
// IsAuthenticationFailed reports whether the IM server rejected user
// credentials. Callers may use this to repair credentials which have drifted
// from the local encrypted copy, while leaving transport failures untouched.