Temporary revert (again) to fix an avatar retrieval issue.

This reverts commit 77524ae1f2.
This commit is contained in:
Greyson Parrelli
2019-05-01 08:25:14 -07:00
parent 4a2f3136c6
commit ecea6abeb6
6 changed files with 391 additions and 27 deletions

View File

@@ -26,7 +26,6 @@ import org.whispersystems.libsignal.InvalidKeyException;
import org.whispersystems.libsignal.util.guava.Optional;
import org.whispersystems.signalservice.api.SignalServiceMessagePipe;
import org.whispersystems.signalservice.api.SignalServiceMessageReceiver;
import org.whispersystems.signalservice.api.crypto.InvalidCiphertextException;
import org.whispersystems.signalservice.api.crypto.ProfileCipher;
import org.whispersystems.signalservice.api.crypto.UnidentifiedAccess;
import org.whispersystems.signalservice.api.crypto.UnidentifiedAccessPair;
@@ -211,7 +210,7 @@ public class RetrieveProfileJob extends BaseJob implements InjectableType {
if (!Util.equals(plaintextProfileName, recipient.getProfileName())) {
DatabaseFactory.getRecipientDatabase(context).setProfileName(recipient, plaintextProfileName);
}
} catch (InvalidCiphertextException | IOException e) {
} catch (ProfileCipher.InvalidCiphertextException | IOException e) {
Log.w(TAG, e);
}
}