This commit is contained in:
M66B
2019-02-05 17:37:19 +00:00
parent 03e0251432
commit c2a66c06af
3 changed files with 3 additions and 4 deletions

View File

@@ -30,9 +30,8 @@ import androidx.room.Query;
public interface DaoAttachment {
@Query("SELECT * FROM attachment" +
" WHERE message = :message" +
" AND (:inline OR disposition <> 'inline')" +
" ORDER BY sequence")
LiveData<List<EntityAttachment>> liveAttachments(long message, boolean inline);
LiveData<List<EntityAttachment>> liveAttachments(long message);
@Query("SELECT ifnull(MAX(sequence), 0)" +
" FROM attachment" +