Attempt repair if you have an invalid credential during invite accept.

This commit is contained in:
Greyson Parrelli 2022-08-12 12:25:57 -04:00
parent b433a7b816
commit 64d3b36b28

View file

@ -528,7 +528,7 @@ final class GroupManagerV2 {
GroupCandidate groupCandidate = groupCandidateHelper.recipientIdToCandidate(Recipient.self().getId());
if (!groupCandidate.hasValidProfileKeyCredential()) {
Log.w(TAG, "No credential available, repairing");
Log.w(TAG, "[updateSelfProfileKeyInGroup] No credential available, repairing");
ApplicationDependencies.getJobManager().add(new ProfileUploadJob());
return null;
}
@ -554,7 +554,8 @@ final class GroupManagerV2 {
GroupCandidate groupCandidate = groupCandidateHelper.recipientIdToCandidate(Recipient.self().getId());
if (!groupCandidate.hasValidProfileKeyCredential()) {
Log.w(TAG, "No credential available");
Log.w(TAG, "[AcceptInvite] No credential available, repairing");
ApplicationDependencies.getJobManager().add(new ProfileUploadJob());
return null;
}