File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/src/main/java/org/thoughtcrime/securesms/jobs Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -270,12 +270,13 @@ protected static Set<String> enqueueCompressingAndUploadAttachmentsChains(@NonNu
270
270
.toList ());
271
271
272
272
if (message .getOutgoingQuote () != null && message .getOutgoingQuote ().getAttachment () != null ) {
273
- AttachmentId attachmentId = ((DatabaseAttachment ) message .getOutgoingQuote ().getAttachment ()).attachmentId ;
274
- AttachmentUploadJob quoteUploadJob = new AttachmentUploadJob (attachmentId );
273
+ AttachmentId attachmentId = ((DatabaseAttachment ) message .getOutgoingQuote ().getAttachment ()).attachmentId ;
275
274
276
- jobManager .add (quoteUploadJob );
277
-
278
- jobs .add (quoteUploadJob .getId ());
275
+ if (SignalDatabase .attachments ().hasData (attachmentId )) {
276
+ AttachmentUploadJob quoteUploadJob = new AttachmentUploadJob (attachmentId );
277
+ jobManager .add (quoteUploadJob );
278
+ jobs .add (quoteUploadJob .getId ());
279
+ }
279
280
}
280
281
281
282
return jobs ;
You can’t perform that action at this time.
0 commit comments