Improve logging around rate-limiting.

fork-5.53.8
Greyson Parrelli 2021-09-02 14:09:48 -04:00
rodzic 9f995d61f4
commit a940487611
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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)
throws ProofRequiredException, RetryLaterException
{
Log.w(TAG, "[Proof Required] Options: " + proofRequired.getOptions());
try {
if (proofRequired.getOptions().contains(ProofRequiredException.Option.PUSH_CHALLENGE)) {
ApplicationDependencies.getSignalServiceAccountManager().requestRateLimitPushChallenge();

Wyświetl plik

@ -48,6 +48,8 @@ public final class RecaptchaProofBottomSheetFragment extends BottomSheetDialogFr
@Override
public void show(@NonNull FragmentManager manager, @Nullable String tag) {
Log.i(TAG, "Showing reCAPTCHA proof bottom sheet.");
if (manager.findFragmentByTag(tag) == null) {
BottomSheetUtil.show(manager, tag, this);
} else {