Prevent account/identity invalidation

This commit is contained in:
M66B
2020-01-22 19:53:17 +01:00
parent 4624ae2166
commit 6e5c89c365
7 changed files with 205 additions and 16 deletions

View File

@@ -34,6 +34,9 @@ public interface DaoIdentity {
" WHERE NOT :synchronize OR account.synchronize")
LiveData<List<TupleIdentityEx>> liveIdentities(boolean synchronize);
@Query(TupleIdentityView.query)
LiveData<List<TupleIdentityView>> liveIdentityView();
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
" JOIN account ON account.id = identity.account" +
" JOIN folder ON folder.account = identity.account AND folder.type = '" + EntityFolder.DRAFTS + "'" +