Catch ProofRequiredException from getPreKeys request and wrap in SendMessageResult

This commit is contained in:
AsamK 2021-09-09 18:54:48 +02:00
parent 0e6644a890
commit a17262d9ff
2 changed files with 4 additions and 1 deletions

View file

@ -67,7 +67,7 @@ public class ErrorUtils {
} else if (result.getProofRequiredFailure() != null) {
final var failure = result.getProofRequiredFailure();
return String.format(
"CAPTCHA proof required for sending to \"%s\", available options \"%s\" with token \"%s\", or wait \"%d\" seconds",
"CAPTCHA proof required for sending to \"%s\", available options \"%s\" with challenge token \"%s\", or wait \"%d\" seconds",
identifier,
failure.getOptions()
.stream()