mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
parent
af71115767
commit
2c15995289
2 changed files with 5 additions and 5 deletions
|
@ -48,7 +48,7 @@ public record SendMessageResult(
|
|||
sendMessageResult.isNetworkFailure(),
|
||||
sendMessageResult.isUnregisteredFailure(),
|
||||
sendMessageResult.getIdentityFailure() != null,
|
||||
sendMessageResult.getRateLimitFailure() != null,
|
||||
sendMessageResult.getRateLimitFailure() != null || sendMessageResult.getProofRequiredFailure() != null,
|
||||
sendMessageResult.getProofRequiredFailure() == null
|
||||
? null
|
||||
: new ProofRequiredException(sendMessageResult.getProofRequiredFailure()));
|
||||
|
|
|
@ -22,10 +22,10 @@ public record JsonSendMessageResult(
|
|||
groupId != null ? groupId.toBase64() : null,
|
||||
result.isSuccess()
|
||||
? Type.SUCCESS
|
||||
: result.isNetworkFailure()
|
||||
? Type.NETWORK_FAILURE
|
||||
: result.isRateLimitFailure()
|
||||
? Type.RATE_LIMIT_FAILURE
|
||||
: result.isNetworkFailure()
|
||||
? Type.NETWORK_FAILURE
|
||||
: result.isUnregisteredFailure()
|
||||
? Type.UNREGISTERED_FAILURE
|
||||
: Type.IDENTITY_FAILURE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue