From 3796ce69e4d26ae44f670c98274e1b61345cf8bc Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Wed, 30 Sep 2020 17:28:33 -0300 Subject: [PATCH] Clear auth cache on first verification failure. --- .../thoughtcrime/securesms/groups/GroupsV2Authorization.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/groups/GroupsV2Authorization.java b/app/src/main/java/org/thoughtcrime/securesms/groups/GroupsV2Authorization.java index 633f04b41..7f94a2127 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/groups/GroupsV2Authorization.java +++ b/app/src/main/java/org/thoughtcrime/securesms/groups/GroupsV2Authorization.java @@ -40,6 +40,9 @@ public final class GroupsV2Authorization { } catch (NoCredentialForRedemptionTimeException e) { Log.i(TAG, "Auth out of date, will update auth and try again"); cache.clear(); + } catch (VerificationFailedException e) { + Log.w(TAG, "Verification failed, will update auth and try again", e); + cache.clear(); } Log.i(TAG, "Getting new auth credential responses");