kopia lustrzana https://github.com/ryukoposting/Signal-Android
Improve logging around rate-limiting.
rodzic
9f995d61f4
commit
a940487611
|
@ -467,6 +467,8 @@ public abstract class PushSendJob extends SendJob {
|
||||||
protected void handleProofRequiredException(@NonNull ProofRequiredException proofRequired, @Nullable Recipient recipient, long threadId, long messageId, boolean isMms)
|
protected void handleProofRequiredException(@NonNull ProofRequiredException proofRequired, @Nullable Recipient recipient, long threadId, long messageId, boolean isMms)
|
||||||
throws ProofRequiredException, RetryLaterException
|
throws ProofRequiredException, RetryLaterException
|
||||||
{
|
{
|
||||||
|
Log.w(TAG, "[Proof Required] Options: " + proofRequired.getOptions());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (proofRequired.getOptions().contains(ProofRequiredException.Option.PUSH_CHALLENGE)) {
|
if (proofRequired.getOptions().contains(ProofRequiredException.Option.PUSH_CHALLENGE)) {
|
||||||
ApplicationDependencies.getSignalServiceAccountManager().requestRateLimitPushChallenge();
|
ApplicationDependencies.getSignalServiceAccountManager().requestRateLimitPushChallenge();
|
||||||
|
|
|
@ -48,6 +48,8 @@ public final class RecaptchaProofBottomSheetFragment extends BottomSheetDialogFr
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void show(@NonNull FragmentManager manager, @Nullable String tag) {
|
public void show(@NonNull FragmentManager manager, @Nullable String tag) {
|
||||||
|
Log.i(TAG, "Showing reCAPTCHA proof bottom sheet.");
|
||||||
|
|
||||||
if (manager.findFragmentByTag(tag) == null) {
|
if (manager.findFragmentByTag(tag) == null) {
|
||||||
BottomSheetUtil.show(manager, tag, this);
|
BottomSheetUtil.show(manager, tag, this);
|
||||||
} else {
|
} else {
|
||||||
|
|
Ładowanie…
Reference in New Issue