mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
a2365a7ba7
commit
6e5aba2535
|
@ -3068,8 +3068,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
EntityOperation.queue(context, message, EntityOperation.ADD);
|
EntityOperation.queue(context, message, EntityOperation.ADD);
|
||||||
|
|
||||||
// Delete from outbox
|
// Delete from outbox
|
||||||
db.operation().deleteOperation(id, EntityOperation.SEND);
|
db.message().deleteMessage(id); // will delete operation too
|
||||||
db.message().deleteMessage(id);
|
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -104,9 +104,4 @@ public interface DaoOperation {
|
||||||
|
|
||||||
@Query("DELETE FROM operation WHERE id = :id")
|
@Query("DELETE FROM operation WHERE id = :id")
|
||||||
int deleteOperation(long id);
|
int deleteOperation(long id);
|
||||||
|
|
||||||
@Query("DELETE FROM operation" +
|
|
||||||
" WHERE message = :message" +
|
|
||||||
" AND name = :name")
|
|
||||||
int deleteOperation(long message, String name);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue