mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +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…
x
Reference in New Issue
Block a user