diff options
author | Wim <wim@42.be> | 2022-08-13 16:14:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 16:14:26 +0200 |
commit | 6a3fc713978a0c1c9290a4afd08b47886b49b635 (patch) | |
tree | aa62cd85cf5671646c75ee38b3fc140ef7edcea8 /vendor/go.mau.fi/whatsmeow/errors.go | |
parent | 3c4192ebf6a32e30cdd23a9644c2ceca72a006fa (diff) | |
download | matterbridge-msglm-6a3fc713978a0c1c9290a4afd08b47886b49b635.tar.gz matterbridge-msglm-6a3fc713978a0c1c9290a4afd08b47886b49b635.tar.bz2 matterbridge-msglm-6a3fc713978a0c1c9290a4afd08b47886b49b635.zip |
Update dependencies and go1.18 (#1873)
* Update dependencies and go1.18
* Exclude unnecessary linters and update build to go1.18
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/errors.go')
-rw-r--r-- | vendor/go.mau.fi/whatsmeow/errors.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/errors.go b/vendor/go.mau.fi/whatsmeow/errors.go index 5cdbd1d0..6391f65b 100644 --- a/vendor/go.mau.fi/whatsmeow/errors.go +++ b/vendor/go.mau.fi/whatsmeow/errors.go @@ -15,10 +15,11 @@ import ( // Miscellaneous errors var ( - ErrNoSession = errors.New("can't encrypt message for device: no signal session established") - ErrIQTimedOut = errors.New("info query timed out") - ErrNotConnected = errors.New("websocket not connected") - ErrNotLoggedIn = errors.New("the store doesn't contain a device JID") + ErrNoSession = errors.New("can't encrypt message for device: no signal session established") + ErrIQTimedOut = errors.New("info query timed out") + ErrNotConnected = errors.New("websocket not connected") + ErrNotLoggedIn = errors.New("the store doesn't contain a device JID") + ErrMessageTimedOut = errors.New("timed out waiting for message send response") ErrAlreadyConnected = errors.New("websocket is already connected") @@ -32,6 +33,9 @@ var ( // ErrProfilePictureUnauthorized is returned by GetProfilePictureInfo when trying to get the profile picture of a user // whose privacy settings prevent you from seeing their profile picture (status code 401). ErrProfilePictureUnauthorized = errors.New("the user has hidden their profile picture from you") + // ErrProfilePictureNotSet is returned by GetProfilePictureInfo when the given user or group doesn't have a profile + // picture (status code 404). + ErrProfilePictureNotSet = errors.New("that user or group does not have a profile picture") // ErrGroupInviteLinkUnauthorized is returned by GetGroupInviteLink if you don't have the permission to get the link (status code 401). ErrGroupInviteLinkUnauthorized = errors.New("you don't have the permission to get the group's invite link") // ErrNotInGroup is returned by group info getting methods if you're not in the group (status code 403). |