mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-07-26 00:39:27 +00:00
handle status code -4 in the getRaw method of the JsonRpc2Client
This commit is contained in:
parent
6a225e62c1
commit
54507eba20
@ -186,6 +186,8 @@ func (r *JsonRpc2Client) getRaw(command string, account *string, args interface{
|
||||
ChallengeTokens: challengeTokens,
|
||||
Err: errors.New(resp.Err.Message),
|
||||
}
|
||||
} else if resp.Err.Code == -4 {
|
||||
return "", errors.New("Unable to complete request due to untrusted recipient keys")
|
||||
}
|
||||
return "", errors.New(resp.Err.Message)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user