mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Generate thumbnails for outgoing pending messages.
Fixes #4307 // FREEBIE
This commit is contained in:
parent
46def68776
commit
f6a5f117b8
@ -150,7 +150,7 @@ public class AttachmentDatabase extends Database {
|
||||
notifyConversationListeners(DatabaseFactory.getMmsDatabase(context).getThreadIdForMessage(mmsId));
|
||||
}
|
||||
|
||||
public @Nullable Attachment getAttachment(AttachmentId attachmentId) {
|
||||
public @Nullable DatabaseAttachment getAttachment(AttachmentId attachmentId) {
|
||||
SQLiteDatabase database = databaseHelper.getReadableDatabase();
|
||||
Cursor cursor = null;
|
||||
|
||||
@ -518,9 +518,9 @@ public class AttachmentDatabase extends Database {
|
||||
return stream;
|
||||
}
|
||||
|
||||
Attachment attachment = getAttachment(attachmentId);
|
||||
DatabaseAttachment attachment = getAttachment(attachmentId);
|
||||
|
||||
if (attachment == null || attachment.isInProgress()) {
|
||||
if (attachment == null || !attachment.hasData()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user