mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
Generate thumbnails for outgoing pending messages.
Fixes #4307 // FREEBIE
This commit is contained in:
parent
46def68776
commit
f6a5f117b8
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue