mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Fixed outbox manual sync
This commit is contained in:
parent
3928319552
commit
1a9656c7c0
2 changed files with 3 additions and 2 deletions
1
FAQ.md
1
FAQ.md
|
@ -987,6 +987,7 @@ but even Google's Chrome cannot handle this.
|
|||
* Did you know that FairEmail has a tablet mode? Rotate your device in landscape mode and conversation threads will be opened in a second column if there is enough screen space.
|
||||
* Did you know that you can long press a reply template to create a draft message from the template?
|
||||
* Did you know that you can long press, hold and swipe to select a range of messages?
|
||||
* Did you know that you can retry sending messages by using pull-down-to-refresh in the outbox?
|
||||
|
||||
<br />
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import androidx.room.Query;
|
|||
public interface DaoOperation {
|
||||
@Query("SELECT operation.*, account.name AS accountName, folder.name AS folderName" +
|
||||
" ,((account.synchronize IS NULL OR account.synchronize)" +
|
||||
" AND (NOT folder.account IS NULL OR identity.synchronize)) AS synchronize" +
|
||||
" AND (NOT folder.account IS NULL OR identity.synchronize IS NULL OR identity.synchronize)) AS synchronize" +
|
||||
" FROM operation" +
|
||||
" JOIN folder ON folder.id = operation.folder" +
|
||||
" LEFT JOIN message ON message.id = operation.message" +
|
||||
|
@ -51,7 +51,7 @@ public interface DaoOperation {
|
|||
" LEFT JOIN identity ON identity.id = message.identity" +
|
||||
" WHERE operation.folder = :folder" +
|
||||
" AND (account.synchronize IS NULL OR account.synchronize)" +
|
||||
" AND (NOT folder.account IS NULL OR identity.synchronize)" +
|
||||
" AND (NOT folder.account IS NULL OR identity.synchronize IS NULL OR identity.synchronize)" +
|
||||
" ORDER BY" +
|
||||
" CASE WHEN operation.name = '" + EntityOperation.SYNC + "' THEN" +
|
||||
" CASE WHEN folder.account IS NULL THEN -1 ELSE 1 END" + // outbox
|
||||
|
|
Loading…
Add table
Reference in a new issue