Fix issue with GV1 avatars using attachmentsV3.

This commit is contained in:
Greyson Parrelli
2020-07-21 15:02:57 -04:00
parent 870cee5707
commit 813c820227
3 changed files with 17 additions and 11 deletions
@@ -381,7 +381,7 @@ public class SignalServiceMessageSender {
attachment.getCancelationSignal(),
attachment.getResumableUploadSpec().orNull());
if (attachmentsV3.get()) {
if (attachment.getResumableUploadSpec().isPresent()) {
return uploadAttachmentV3(attachment, attachmentKey, attachmentData);
} else {
return uploadAttachmentV2(attachment, attachmentKey, attachmentData);