mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Use attachment disposition for inline images
This commit is contained in:
@@ -25,7 +25,6 @@ import androidx.lifecycle.LiveData;
|
||||
import androidx.room.Dao;
|
||||
import androidx.room.Insert;
|
||||
import androidx.room.Query;
|
||||
import androidx.room.Update;
|
||||
|
||||
@Dao
|
||||
public interface DaoAttachment {
|
||||
@@ -69,17 +68,9 @@ public interface DaoAttachment {
|
||||
" WHERE id = :id")
|
||||
void setDownloaded(long id, Integer size);
|
||||
|
||||
@Query("UPDATE attachment" +
|
||||
" SET cid = NULL" +
|
||||
" WHERE id = :id")
|
||||
void clearCid(long id);
|
||||
|
||||
@Insert
|
||||
long insertAttachment(EntityAttachment attachment);
|
||||
|
||||
@Update
|
||||
void updateAttachment(EntityAttachment attachment);
|
||||
|
||||
@Query("DELETE FROM attachment" +
|
||||
" WHERE id = :id")
|
||||
int deleteAttachment(long id);
|
||||
|
||||
Reference in New Issue
Block a user